public class RasterTileLayer extends TileLayer
swigCMemOwn
Constructor and Description |
---|
RasterTileLayer(long cPtr,
boolean cMemoryOwn) |
RasterTileLayer(TileDataSource dataSource)
Constructs a RasterTileLayer object from a data source.
|
Modifier and Type | Method and Description |
---|---|
void |
clearTileCaches(boolean all)
Clear layer tile caches.
|
void |
delete() |
protected void |
finalize() |
static long |
getCPtr(RasterTileLayer obj) |
int |
getFrameNr()
Returns the current frame number.
|
float |
getOpacity()
Returns the opacity of the layer.
|
long |
getTextureCacheCapacity()
Returns the tile texture cache capacity.
|
TileLoadListener |
getTileLoadListener()
Returns the tile load listener.
|
boolean |
isSynchronizedRefresh()
Returns the state of the synchronized refresh flag.
|
void |
setFrameNr(int frameNr)
Sets the frame number, only used for animated tiles.
|
void |
setOpacity(float opacity)
Sets the opacity attribute of the layer.
|
void |
setSynchronizedRefresh(boolean synchronizedRefresh)
Sets the state of the synchronized refresh flag.
|
void |
setTextureCacheCapacity(long capacityInBytes)
Sets the tile texture cache capacity.
|
void |
setTileLoadListener(TileLoadListener tileLoadListener)
Sets the tile load listener.
|
static RasterTileLayer |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
calculateMapTile, calculateMapTileOrigin, getCPtr, getDataSource, getTileSubstitutionPolicy, getZoomLevelBias, isPreloading, isUpdateInProgress, setPreloading, setTileSubstitutionPolicy, setZoomLevelBias
equals, getCPtr, getPriority, getVisibleZoomRange, hashCode, isVisible, refresh, setPriority, setVisible, setVisibleZoomRange, update
public RasterTileLayer(long cPtr, boolean cMemoryOwn)
public RasterTileLayer(TileDataSource dataSource)
dataSource
- The data source from which this layer loads data.public static long getCPtr(RasterTileLayer obj)
public static RasterTileLayer swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public float getOpacity()
public void setOpacity(float opacity)
opacity
- The relative opacity. Use 0 for fully transparent layer, 1 for fully opaque layer. Default is 1.public int getFrameNr()
public void setFrameNr(int frameNr)
frameNr
- The frame number to display.public boolean isSynchronizedRefresh()
public void setSynchronizedRefresh(boolean synchronizedRefresh)
synchronizedRefresh
- The new state of the synchronized refresh flag.public TileLoadListener getTileLoadListener()
public void setTileLoadListener(TileLoadListener tileLoadListener)
tileLoadListener
- The tile load listener.public long getTextureCacheCapacity()
public void setTextureCacheCapacity(long capacityInBytes)
public void clearTileCaches(boolean all)
TileLayer
clearTileCaches
in class TileLayer
all
- True if all tiles should be released, otherwise only preloading (invisible) tiles are released.public java.lang.String swigGetClassName()
swigGetClassName
in class TileLayer
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
in class TileLayer