|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.jdesktop.beans.AbstractBean
org.jdesktop.swingx.mapviewer.Tile
public class Tile extends org.jdesktop.beans.AbstractBean
The Tile class represents a particular square image piece of the world bitmap at a particular zoom level.
| Nested Class Summary | |
|---|---|
enum |
Tile.Priority
|
| Field Summary | |
|---|---|
private static Logger |
LOG
|
private TileFactory |
dtf
|
private Throwable |
error
If an error occurs while loading a tile, store the exception here. |
SoftReference |
image
|
private boolean |
isLoading
|
private boolean |
loaded
The zoom level this tile is for |
private Tile.Priority |
priority
The Tile class represents a particular square image piece of the world bitmap at a particular zoom level. |
private PropertyChangeListener |
uniqueListener
Adds a single property change listener. |
private String |
url
|
private int |
x
|
private int |
y
|
private int |
zoom
The image loaded for this Tile |
| Constructor Summary | |
Tile(int x, int y, int zoom)
|
|
Tile(int x, int y, int zoom, String url, Tile.Priority priority, TileFactory dtf)
Create a new Tile that loads its data from the given URL. |
|
| Method Summary | |
|---|---|
void
|
addUniquePropertyChangeListener(String propertyName, PropertyChangeListener listener)
|
void
|
firePropertyChangeOnEDT(String propertyName, Object oldValue, Object newValue)
|
Throwable
|
getError()
@param error the error to set |
BufferedImage
|
getImage()
|
Throwable
|
getLoadingError()
|
Tile.Priority
|
getPriority()
Set the loading priority of this tile. |
String
|
getURL()
|
Throwable
|
getUnrecoverableError()
Returns the last error in a possible chain of errors that occured during the loading of the tile |
int
|
getX()
|
int
|
getY()
|
int
|
getZoom()
@return the location in the world at this zoom level that this tile should be placed |
boolean
|
isLoaded()
Indicates if this tile's underlying image has been successfully loaded yet. |
boolean
|
isLoading()
@param isLoading the isLoading to set |
private static void
|
p(String string)
@return the error |
void
|
setError(Throwable error)
@return the isLoading |
void
|
setLoaded(boolean loaded)
|
void
|
setLoading(boolean isLoading)
Gets the loading priority of this tile. |
void
|
setPriority(Tile.Priority priority)
|
Tile
|
valueOf(String name)
Returns the enum constant of this type with the specified name. |
Tile[]
|
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class org.jdesktop.beans.AbstractBean | |
|---|---|
| org.jdesktop.beans.AbstractBean#clone(), org.jdesktop.beans.AbstractBean#addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#addPropertyChangeListener(java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#removePropertyChangeListener(java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#getPropertyChangeListeners(java.lang.String), org.jdesktop.beans.AbstractBean#getPropertyChangeListeners(), org.jdesktop.beans.AbstractBean#addVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#addVetoableChangeListener(java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#removeVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#removeVetoableChangeListener(java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#getVetoableChangeListeners(java.lang.String), org.jdesktop.beans.AbstractBean#getVetoableChangeListeners(), org.jdesktop.beans.AbstractBean#wait(), org.jdesktop.beans.AbstractBean#wait(long), org.jdesktop.beans.AbstractBean#wait(long, int), org.jdesktop.beans.AbstractBean#equals(java.lang.Object), org.jdesktop.beans.AbstractBean#toString(), org.jdesktop.beans.AbstractBean#hashCode(), org.jdesktop.beans.AbstractBean#getClass(), org.jdesktop.beans.AbstractBean#notify(), org.jdesktop.beans.AbstractBean#notifyAll() |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
private static final Logger LOG
private TileFactory dtf
private Throwable error
SoftReference image
private boolean isLoading
private boolean loaded
private Tile.Priority priority
private PropertyChangeListener uniqueListener
private String url
private int x
private int y
private int zoom
| Constructor Detail |
|---|
public Tile(int x, int y, int zoom)
Tile(int x, int y, int zoom, String url, Tile.Priority priority, TileFactory dtf)
| Method Detail |
|---|
public void addUniquePropertyChangeListener(String propertyName, PropertyChangeListener listener)
void firePropertyChangeOnEDT(String propertyName, Object oldValue, Object newValue)
public Throwable getError()
error - the error to set
public BufferedImage getImage()
public Throwable getLoadingError()
public Tile.Priority getPriority()
priority - the priority to set
public String getURL()
public Throwable getUnrecoverableError()
public int getX()
public int getY()
public int getZoom()
public boolean isLoaded()
public boolean isLoading()
isLoading - the isLoading to set
private static void p(String string)
public void setError(Throwable error)
void setLoaded(boolean loaded)
public void setLoading(boolean isLoading)
public void setPriority(Tile.Priority priority)
Tile valueOf(String name)
Tile[] values()
Groovy Documentation