public class TileLayer extends Layer
swigCMemOwn
构造器和说明 |
---|
TileLayer(long cPtr,
boolean cMemoryOwn) |
限定符和类型 | 方法和说明 |
---|---|
MapBounds |
calculateMapTileBounds(MapTile mapTile)
Calculates the tile corresponding to given geographical coordinates and zoom level.
|
void |
clearTileCaches(boolean all)
Clears layer tile caches.
|
void |
delete() |
void |
deleteInGLThread() |
protected void |
finalize() |
static long |
getCPtr(TileLayer obj) |
TileDataSource |
getDataSource()
Returns the data source assigned to this layer.
|
int |
getFrameNr()
Returns the current frame number.
|
int |
getMaxOverzoomLevel()
Gets the current maximum overzoom level for this layer.
|
int |
getMaxUnderzoomLevel()
Gets the current maximum underzoom level for this layer.
|
java.lang.String |
getName() |
TileLoadListener |
getTileLoadListener()
Returns the tile load listener.
|
TileSubstitutionPolicy |
getTileSubstitutionPolicy()
Returns the current tile substitution policy.
|
TileDataSource |
getUTFGridDataSource()
Returns the tile data source of the associated UTF grid.
|
UTFGridEventListener |
getUTFGridEventListener()
Returns the UTF grid event listener.
|
float |
getZoomLevelBias()
Gets the current zoom level bias for this layer.
|
boolean |
isPreloading()
Returns the state of the preloading flag of this layer.
|
boolean |
isSynchronizedRefresh()
Returns the state of the synchronized refresh flag.
|
boolean |
isUpdateInProgress()
Tests whether this layer is being currently updated.
|
void |
setFrameNr(int frameNr)
Sets the frame number, only used for animated tiles.
|
void |
setMaxOverzoomLevel(int overzoomLevel)
Sets the maximum overzoom level for this layer.
|
void |
setMaxUnderzoomLevel(int underzoomLevel)
Sets the maximum underzoom level for this layer.
|
void |
setPreloading(boolean preloading)
Sets the state of preloading for this layer.
|
void |
setSynchronizedRefresh(boolean synchronizedRefresh)
Sets the state of the synchronized refresh flag.
|
void |
setTileLoadListener(TileLoadListener tileLoadListener)
Sets the tile load listener.
|
void |
setTileSubstitutionPolicy(TileSubstitutionPolicy policy)
Sets the current tile substitution policy.
|
void |
setUTFGridDataSource(TileDataSource dataSource)
Sets the tile data source of the associated UTF grid.
|
void |
setUTFGridEventListener(UTFGridEventListener utfGridEventListener)
Sets the UTF grid event listener.
|
void |
setZoomLevelBias(float bias)
Sets the zoom level bias for this layer.
|
static TileLayer |
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.
|
equals, getCPtr, getLayerBrightness, getLayerContrast, getLayerOpacity, getLayerSaturation, getPriority, getUpdatePriority, getUUID, getVisibleZoomRange, hashCode, inVisibleZoomRange, isVisible, refresh, screenClip, setCullDelay, setLayerBrightness, setLayerContrast, setLayerOpacity, setLayerSaturation, setPriority, setUpdatePriority, setVisible, setVisibleZoomRange, update
public static long getCPtr(TileLayer obj)
public static TileLayer swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
cPtr
- The native pointer of the instance.cMemoryOwn
- The ownership flag.public TileDataSource getDataSource()
public TileDataSource getUTFGridDataSource()
public void setUTFGridDataSource(TileDataSource dataSource)
dataSource
- The data source to use. Can be null if UTF grid is not used.public int getFrameNr()
public void setFrameNr(int frameNr)
frameNr
- The frame number to display.public boolean isPreloading()
public void setPreloading(boolean preloading)
preloading
- The new preloading state of the layer.public boolean isSynchronizedRefresh()
public void setSynchronizedRefresh(boolean synchronizedRefresh)
synchronizedRefresh
- The new state of the synchronized refresh flag.public TileSubstitutionPolicy getTileSubstitutionPolicy()
public void setTileSubstitutionPolicy(TileSubstitutionPolicy policy)
policy
- The new substitution policy. Default is TILE_SUBSTITUTION_POLICY_ALL.public float getZoomLevelBias()
public void setZoomLevelBias(float bias)
bias
- The new bias value, both positive and negative fractional values are supported.public int getMaxOverzoomLevel()
public void setMaxOverzoomLevel(int overzoomLevel)
overzoomLevel
- The new maximum overzoom value.public int getMaxUnderzoomLevel()
public void setMaxUnderzoomLevel(int underzoomLevel)
underzoomLevel
- The new maximum underzoom value.public MapBounds calculateMapTileBounds(MapTile mapTile)
mapTile
- The map tile to use.mapTile
- The map tile to use.public void clearTileCaches(boolean all)
all
- True if all tiles should be released, otherwise only preloading (invisible) tiles are released.public TileLoadListener getTileLoadListener()
public void setTileLoadListener(TileLoadListener tileLoadListener)
tileLoadListener
- The tile load listener.public UTFGridEventListener getUTFGridEventListener()
public void setUTFGridEventListener(UTFGridEventListener utfGridEventListener)
utfGridEventListener
- The UTF grid event listener.public boolean isUpdateInProgress()
Layer
isUpdateInProgress
在类中 Layer
public java.lang.String getName()
public void deleteInGLThread()
deleteInGLThread
在类中 Layer
public java.lang.String swigGetClassName()
swigGetClassName
在类中 Layer
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
在类中 Layer