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
|
Rectangle2D |
getCoordsPx()
Gets the coordinates in pixels of this tile inside the layer.
|
Object |
getCrashARGB()
Gets the image that represent a crash tile
|
Object[] |
getCrashImage()
Deprecated.
|
Object[] |
getData()
Gets the data associated to this tile.
|
Object |
getDownloaderParams(String key)
Gets the Downloader parameters
|
Object |
getDownloadingARGB()
Gets the image that represent a tile while is downloading
|
Object[] |
getDownloadingImage()
Deprecated.
|
Rectangle2D |
getExtent()
Gets the bounding box
|
File |
getFile()
Gets the file associated to this tile
|
int |
getHeightPx()
Gets the height in pixels of this tile
|
String |
getId()
Gets an unique identifier to this tile
|
int |
getLevel()
Gets the resolution level of this tile
|
Point2D |
getLr()
Gets the lower right coordinate of this tile
|
int |
getRow()
Gets the row of this tile
|
String |
getTimeInstant()
Gets the time instant that this tile belong to.This is useful when the source
is a multidimensional container.
|
Point2D |
getUl()
Gets the upper left coordinate of this tile
|
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
|
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(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(Object[] data)
Sets the data associated to this tile.
|
void |
setDownloader(Downloader downloader)
Sets the downloader for this tile
|
void |
setDownloaderParams(String key,
Object downloaderParams)
Sets the Downloader parameters
|
void |
setFile(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(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(String t)
Sets the time instant that this tile belong to.This is useful when the source
is a multidimensional container.
|
void |
setUl(Point2D ul)
Sets the upper left coordinate of this tile
|
void |
setVariable(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(String z)
Sets the Z that this tile belong to.
|
cancelTask, getPriority, setPriority
compareTo
String getVariable()
String getZ()
String getTimeInstant()
void setVariable(String var)
void setZ(String z)
void setTimeInstant(String t)
int getCol()
int getRow()
int getLevel()
void setCol(int col)
col
- void setRow(int row)
col
- void setLevel(int level)
col
- Rectangle2D getCoordsPx()
void setCoordsPx(Rectangle2D r)
r
- int getWidthPx()
void setWidthPx(int widthPx)
widthPx
- int getHeightPx()
void setHeightPx(int heightPx)
heightPx
- Rectangle2D getExtent()
Point2D getUl()
void setUl(Point2D ul)
Point2D getLr()
void setLr(Point2D lr)
File getFile()
void setFile(File file)
file
- String getId()
void setDownloaderParams(String key, Object downloaderParams)
downloaderParams
- void setData(Object[] data)
data
- Object[] getData()
boolean dataIsLoaded()
void setCorrupt(boolean corrupt)
corrupt
- boolean isCorrupt()
void setSharedPipe(TilePipe sharedPipe)
sharedPipe
- void setDownloader(Downloader downloader)
downloader
- Object[] getDownloadingImage()
Object[] getCrashImage()
Object getDownloadingARGB()
Object getCrashARGB()
ICancellable getCancelled()