public class TLcdEarthTile extends ALcdEarthTile
ALcdEarthTile
.Constructor and Description |
---|
TLcdEarthTile(ILcdBounds aBounds,
Object aData,
int aLevel,
long aTileX,
long aTileY,
ILcdEarthTileSetCoverage aCoverage,
ILcdGeoReference aGeoReference,
TLcdEarthTileFormat aFormat)
Creates a new
TLcdEarthTile with the given parameters and the
current date as its creation date. |
TLcdEarthTile(ILcdBounds aBounds,
Object aData,
int aLevel,
long aTileX,
long aTileY,
ILcdEarthTileSetCoverage aCoverage,
ILcdGeoReference aGeoReference,
TLcdEarthTileFormat aFormat,
Date aCreationDate)
Creates a new
TLcdEarthTile with the given parameters. |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clears the cache.
|
boolean |
equals(Object o) |
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
Object |
getCachedObject(Object aKey)
Looks up and returns the cached Object corresponding to the given key.
|
float |
getCompleteness()
Returns the tile's completeness, that is the progress level to reach the complete status.
|
Date |
getCreationDate()
Returns the date the tile and its data were created.
|
Object |
getData()
Returns the tile's data.
|
TLcdEarthTileFormat |
getDataFormat()
Returns the tile data's format.
|
ILcdGeoReference |
getGeoReference()
Returns the georeference of the tile's data.
|
int |
getLevel()
Returns the detail level to which this tile belongs.
|
ILcdEarthTileSetCoverage |
getTileSetCoverage()
Returns the coverage to which this tile belongs.
|
long |
getTileX()
Returns the tile's column index.
|
long |
getTileY()
Returns the tile's row index.
|
int |
hashCode() |
void |
insertIntoCache(Object aKey,
Object aObject)
Inserts a cache Object corresponding to the given key Object.
|
boolean |
isComplete()
If false, this tile represents a partially loaded chunk of data.
|
Object |
removeCachedObject(Object aKey)
Looks up and removes the cached Object corresponding to the given key.
|
String |
toString() |
getMinimalTile
public TLcdEarthTile(ILcdBounds aBounds, Object aData, int aLevel, long aTileX, long aTileY, ILcdEarthTileSetCoverage aCoverage, ILcdGeoReference aGeoReference, TLcdEarthTileFormat aFormat)
TLcdEarthTile
with the given parameters and the
current date as its creation date.aBounds
- the bounds of the tileaData
- the data contained in the tileaLevel
- the level of the tileaTileX
- the column index of the tileaTileY
- the row index of the tileaCoverage
- the coverage of the tileaGeoReference
- the reference of the tileaFormat
- the format of the tile's datapublic TLcdEarthTile(ILcdBounds aBounds, Object aData, int aLevel, long aTileX, long aTileY, ILcdEarthTileSetCoverage aCoverage, ILcdGeoReference aGeoReference, TLcdEarthTileFormat aFormat, Date aCreationDate)
TLcdEarthTile
with the given parameters.aBounds
- the bounds of the tileaData
- the data contained in the tileaLevel
- the level of the tileaTileX
- the column index of the tileaTileY
- the row index of the tileaCoverage
- the coverage of the tileaGeoReference
- the reference of the tileaFormat
- the format of the tile's dataaCreationDate
- the creation date of the tile's datepublic TLcdEarthTileFormat getDataFormat()
ALcdEarthTile
ALcdEarthTile.getData()
.getDataFormat
in class ALcdEarthTile
public Object getData()
ALcdEarthTile
ALcdEarthTile.getDataFormat()
method.getData
in class ALcdEarthTile
public ILcdBounds getBounds()
ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.
If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points)
the return value is unspecified.
It is highly recommended to return an undefined
bounds.
You can create undefined bounds using the default constructors
of TLcdLonLatBounds
or TLcdXYBounds
.
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public int getLevel()
ALcdEarthTile
getLevel
in class ALcdEarthTile
public long getTileX()
ALcdEarthTile
getTileX
in class ALcdEarthTile
public long getTileY()
ALcdEarthTile
getTileY
in class ALcdEarthTile
public ILcdEarthTileSetCoverage getTileSetCoverage()
ALcdEarthTile
getTileSetCoverage
in class ALcdEarthTile
public ILcdGeoReference getGeoReference()
ALcdEarthTile
getGeoReference
in class ALcdEarthTile
public boolean isComplete()
ALcdEarthTile
isComplete
in class ALcdEarthTile
public float getCompleteness()
ALcdEarthTile
getCompleteness
in class ALcdEarthTile
public Date getCreationDate()
ALcdEarthTile
getCreationDate
in class ALcdEarthTile
public void insertIntoCache(Object aKey, Object aObject)
ILcdCache
aKey
- the key Object that will be used to identify the Object.
The key must therefore be a unique identifier, typically the caller
itself: insertIntoCache(this, ...)
.aObject
- the Object to be cached.public Object getCachedObject(Object aKey)
ILcdCache
aKey
- the key Object that was used for storing the cache Object.public Object removeCachedObject(Object aKey)
ILcdCache
aKey
- the key Object that was used for storing the cache Object.public void clearCache()
ILcdCache