public class TLcdEarthTileContext extends Object
TLcdEarthTileContext
defines the context of an Earth painter. It gives access to the following
information:
Constructor and Description |
---|
TLcdEarthTileContext(ILcdEarthTileSet aTileSet,
ILcdEarthTileSetCoverage aCoverage,
Map<TLcdEarthTileID,ALcdEarthTile> aTiles)
Constructs a new
TLcdEarthTileContext with an unknown number of pending tiles. |
TLcdEarthTileContext(ILcdEarthTileSet aTileSet,
ILcdEarthTileSetCoverage aCoverage,
Map<TLcdEarthTileID,ALcdEarthTile> aTiles,
int aPendingTileCount)
Constructs a new
TLcdEarthTileContext . |
Modifier and Type | Method and Description |
---|---|
ILcdEarthTileSetCoverage |
getCoverage()
Returns the coverage in the tile set that was painted
|
int |
getPendingTileCount()
Returns the number of tile requests that are still pending.
|
Map<TLcdEarthTileID,ALcdEarthTile> |
getTiles()
Returns the tiles in the coverage that were painted.
|
ILcdEarthTileSet |
getTileSet()
Returns the tile set that was painted.
|
public TLcdEarthTileContext(ILcdEarthTileSet aTileSet, ILcdEarthTileSetCoverage aCoverage, Map<TLcdEarthTileID,ALcdEarthTile> aTiles)
TLcdEarthTileContext
with an unknown number of pending tiles.
The tile map should be unmodifiable.aTileSet
- the tile set that was paintedaCoverage
- the coverage in the tile set that was paintedaTiles
- the tiles in the coverage that were paintedpublic TLcdEarthTileContext(ILcdEarthTileSet aTileSet, ILcdEarthTileSetCoverage aCoverage, Map<TLcdEarthTileID,ALcdEarthTile> aTiles, int aPendingTileCount)
TLcdEarthTileContext
.
The tile map should be unmodifiable.aTileSet
- the tile set that was paintedaCoverage
- the coverage in the tile set that was paintedaTiles
- the tiles in the coverage that were paintedaPendingTileCount
- the number of tiles that are pending or -1
if this is unknownpublic ILcdEarthTileSet getTileSet()
public ILcdEarthTileSetCoverage getCoverage()
public Map<TLcdEarthTileID,ALcdEarthTile> getTiles()
ILcdEarthTileSet
interface, tiles should never be
modified.public int getPendingTileCount()
-1
if it is unknown.