public interface Tile extends AtomicTask
Modifier and Type | Method and Description |
---|---|
boolean |
dataIsLoaded()
Returns true if the buffer data is loaded
|
ICancellable |
getCancelled()
Returns true if downloading has been canceled.
|
int |
getCol()
Gets the column of this tile
|
java.awt.geom.Rectangle2D |
getCoordsPx()
Gets the coordinates in pixels of this tile inside the layer.
|
java.lang.Object |
getCrashARGB()
Gets the image that represent a crash tile
|
java.lang.Object[] |
getCrashImage()
Deprecated.
|
java.lang.Object[] |
getData()
Gets the data associated to this tile.
|
java.lang.Object |
getDownloaderParams(java.lang.String key)
Gets the Downloader parameters
|
java.lang.Object |
getDownloadingARGB()
Gets the image that represent a tile while is downloading
|
java.lang.Object[] |
getDownloadingImage()
Deprecated.
|
java.awt.geom.Rectangle2D |
getExtent()
Gets the bounding box
|
java.io.File |
getFile()
Gets the file associated to this tile
|
int |
getHeightPx()
Gets the height in pixels of this tile
|
java.lang.String |
getId()
Gets an unique identifier to this tile
|
int |
getLevel()
Gets the resolution level of this tile
|
java.awt.geom.Point2D |
getLr()
Gets the lower right coordinate of this tile
|
int |
getRow()
Gets the row of this tile
|
java.lang.String |
getTimeInstant()
Gets the time instant that this tile belong to.This is useful when the source
is a multidimensional container.
|
java.awt.geom.Point2D |
getUl()
Gets the upper left coordinate of this tile
|
java.lang.String |
getVariable()
Gets the Variable that this tile belong to.This is useful when the source
is a multidimensional container.
|
int |
getWidthPx()
Gets the width in pixels of this tile
|
java.lang.String |
getZ()
Gets the Z that this tile belong to.
|
boolean |
isCorrupt()
Returns true if the downloaded tile is corrupt, so this can't be sent to the client
|
void |
setCol(int col)
Sets the column of this tile in its level
|
void |
setCoordsPx(java.awt.geom.Rectangle2D r)
Sets the coordinates ins pixels of this tile inside the layer.
|
void |
setCorrupt(boolean corrupt)
Sets this flag to true if the data is corrupt
|
void |
setData(java.lang.Object[] data)
Sets the data associated to this tile.
|
void |
setDownloader(Downloader downloader)
Sets the downloader for this tile
|
void |
setDownloaderParams(java.lang.String key,
java.lang.Object downloaderParams)
Sets the Downloader parameters
|
void |
setFile(java.io.File file)
Sets the file associated to this tile
|
void |
setHeightPx(int heightPx)
Sets the height in pixels of this tile
|
void |
setLevel(int level)
Sets the level of resolution of this tile
|
void |
setLr(java.awt.geom.Point2D lr)
Sets the lower right coordinate of this tile
|
void |
setRow(int row)
Sets the row of this tile in its level
|
void |
setSharedPipe(TilePipe sharedPipe)
Sets the pipe of tiles
|
void |
setTimeInstant(java.lang.String t)
Sets the time instant that this tile belong to.This is useful when the source
is a multidimensional container.
|
void |
setUl(java.awt.geom.Point2D ul)
Sets the upper left coordinate of this tile
|
void |
setVariable(java.lang.String var)
Sets the Variable that this tile belong to.This is useful when the source
is a multidimensional container.
|
void |
setWidthPx(int widthPx)
Sets the width in pixels of this tile
|
void |
setZ(java.lang.String z)
Sets the Z that this tile belong to.
|
cancelTask, getPriority, setPriority
java.lang.String getVariable()
java.lang.String getZ()
java.lang.String getTimeInstant()
void setVariable(java.lang.String var)
void setZ(java.lang.String z)
void setTimeInstant(java.lang.String t)
int getCol()
int getRow()
int getLevel()
void setCol(int col)
col
- void setRow(int row)
col
- void setLevel(int level)
col
- java.awt.geom.Rectangle2D getCoordsPx()
void setCoordsPx(java.awt.geom.Rectangle2D r)
r
- int getWidthPx()
void setWidthPx(int widthPx)
widthPx
- int getHeightPx()
void setHeightPx(int heightPx)
heightPx
- java.awt.geom.Rectangle2D getExtent()
java.awt.geom.Point2D getUl()
void setUl(java.awt.geom.Point2D ul)
java.awt.geom.Point2D getLr()
void setLr(java.awt.geom.Point2D lr)
java.io.File getFile()
void setFile(java.io.File file)
file
- java.lang.String getId()
java.lang.Object getDownloaderParams(java.lang.String key)
void setDownloaderParams(java.lang.String key, java.lang.Object downloaderParams)
downloaderParams
- void setData(java.lang.Object[] data)
data
- java.lang.Object[] getData()
boolean dataIsLoaded()
void setCorrupt(boolean corrupt)
corrupt
- boolean isCorrupt()
void setSharedPipe(TilePipe sharedPipe)
sharedPipe
- void setDownloader(Downloader downloader)
downloader
- java.lang.Object[] getDownloadingImage()
java.lang.Object[] getCrashImage()
java.lang.Object getDownloadingARGB()
java.lang.Object getCrashARGB()
ICancellable getCancelled()