类 Tile
- java.lang.Object
-
- org.meteoinfo.data.mapdata.webmap.AbstractBean
-
- org.meteoinfo.data.mapdata.webmap.Tile
-
public class Tile extends AbstractBean
The Tile class represents a particular square image piece of the world bitmap at a particular zoom level.- 作者:
- joshy
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classTile.Priority
-
构造器概要
构造器 构造器 说明 Tile(int x, int y, int zoom)Create a new Tile at the specified tile point and zoom level
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddUniquePropertyChangeListener(String propertyName, PropertyChangeListener listener)Adds a single property change listener.ThrowablegetError()BufferedImagegetImage()Returns the Image associated with this Tile.ThrowablegetLoadingError()Returns the Throwable tied to any error that may have ocurred while loading the tile.Tile.PrioritygetPriority()Gets the loading priority of this tile.ThrowablegetUnrecoverableError()Returns the last error in a possible chain of errors that occured during the loading of the tileStringgetURL()Gets the URL of this tile.intgetX()intgetY()intgetZoom()booleanisLoaded()Indicates if this tile's underlying image has been successfully loaded yet.booleanisLoading()voidsetError(Throwable error)voidsetLoading(boolean isLoading)voidsetPriority(Tile.Priority priority)Set the loading priority of this tile.-
从类继承的方法 org.meteoinfo.data.mapdata.webmap.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
-
-
-
方法详细资料
-
isLoaded
public boolean isLoaded()
Indicates if this tile's underlying image has been successfully loaded yet.- 返回:
- true if the Tile has been loaded
-
getUnrecoverableError
public Throwable getUnrecoverableError()
Returns the last error in a possible chain of errors that occured during the loading of the tile- 返回:
-
getLoadingError
public Throwable getLoadingError()
Returns the Throwable tied to any error that may have ocurred while loading the tile. This error may change several times if multiple errors occur- 返回:
- Throwable
-
getImage
public BufferedImage getImage()
Returns the Image associated with this Tile. This is a read only property This may return null at any time, however if this returns null, a load operation will automatically be started for it.- 返回:
- BufferedImage
-
getZoom
public int getZoom()
- 返回:
- the zoom level that this tile belongs in
-
addUniquePropertyChangeListener
public void addUniquePropertyChangeListener(String propertyName, PropertyChangeListener listener)
Adds a single property change listener. If a listener has been previously added then it will be replaced by the new one.- 参数:
propertyName-listener-
-
getError
public Throwable getError()
- 返回:
- the error
-
setError
public void setError(Throwable error)
- 参数:
error- the error to set
-
isLoading
public boolean isLoading()
- 返回:
- the isLoading
-
setLoading
public void setLoading(boolean isLoading)
- 参数:
isLoading- the isLoading to set
-
getPriority
public Tile.Priority getPriority()
Gets the loading priority of this tile.- 返回:
- Priority
-
setPriority
public void setPriority(Tile.Priority priority)
Set the loading priority of this tile.- 参数:
priority- the priority to set
-
getURL
public String getURL()
Gets the URL of this tile.- 返回:
- URL string
-
getX
public int getX()
-
getY
public int getY()
-
-