public class Options
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
Options(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
boolean |
equals(java.lang.Object obj)
Checks if this object is equal to the specified object.
|
protected void |
finalize() |
Color |
getAmbientLightColor()
Returns the color of the ambient light.
|
Bitmap |
getBackgroundBitmap()
Returns the background bitmap.
|
Projection |
getBaseProjection()
Returns the base projection.
|
static long |
getCPtr(Options obj) |
float |
getDPI()
Returns the dots per inch value.
|
float |
getDrawDistance()
Returns the draw distance value.
|
int |
getEnvelopeThreadPoolSize()
Returns the number of threads used by the envelope task pool.
|
int |
getFieldOfViewY()
Returns the vertial field of view angle.
|
ScreenPos |
getFocusPointOffset()
Returns the focus point offset (from screen center) in pixels.
|
Color |
getMainLightColor()
Returns the color of the main light.
|
MapVec |
getMainLightDirection()
Returns the direction of the main light.
|
MapBounds |
getPanBounds()
Returns the map panning bounds constraints.
|
PanningMode |
getPanningMode()
Returns the panning mode.
|
PivotMode |
getPivotMode()
Returns the pivot mode.
|
ProjectionMode |
getProjectionMode()
Returns the projection mode.
|
Bitmap |
getSkyBitmap()
Returns the sky bitmap.
|
int |
getTileDrawSize()
Returns the tile size used for drawing map tiles.
|
int |
getTileThreadPoolSize()
Returns the number of threads used by the tile task pool.
|
MapRange |
getTiltRange()
Returns the tilt range constraint.
|
float |
getWatermarkAlignmentX()
Returns the horizontal alignment of the watermark.
|
float |
getWatermarkAlignmentY()
Returns the vertical alignment of the watermark.
|
Bitmap |
getWatermarkBitmap()
Returns the watermark bitmap.
|
float |
getWatermarkPaddingX()
Returns the horizontal padding of the watermark.
|
float |
getWatermarkPaddingY()
Returns the vertical padding of the watermark.
|
float |
getWatermarkScale()
Returns the watermark relative scale.
|
MapRange |
getZoomRange()
Returns the zoom range constraint.
|
int |
hashCode()
Returns the hash value of this object.
|
boolean |
isClickTypeDetection()
Returns the click type detection state.
|
boolean |
isKineticPan()
Returns the state of the kinetic panning flag.
|
boolean |
isKineticRotation()
Returns the state of the kinetic rotation flag.
|
boolean |
isKineticZoom()
Returns the state of kinetic zoom flag.
|
boolean |
isRotatable()
Returns the state of the map rotatability flag.
|
boolean |
isSeamlessPanning()
Returns the state of seamless horizontal panning flag.
|
boolean |
isUserInput()
Returns the state of the user input flag.
|
void |
setAmbientLight(Color color)
Sets the parameters for the ambient light.
|
void |
setBackgroundBitmap(Bitmap backgroundBitmap)
Sets the background bitmap.
|
void |
setBaseProjection(Projection baseProjection)
Sets the base projection.
|
void |
setClickTypeDetection(boolean enabled)
Sets the state of the click type detection flag.
|
void |
setDPI(float dpi)
Sets the dots per inch value.
|
void |
setDrawDistance(float drawDistance)
Sets a new draw distance value.
|
void |
setEnvelopeThreadPoolSize(int poolSize)
Sets the number of threads used by the envelope task pool.
|
void |
setFieldOfViewY(int fovY)
Sets the vertial field of view angle.
|
void |
setFocusPointOffset(ScreenPos offset)
Sets the focus point offset (from screen center) in pixels.
|
void |
setKineticPan(boolean enabled)
Sets the state of the kinetic panning flag.
|
void |
setKineticRotation(boolean enabled)
Sets the state of the kinetic rotation flag.
|
void |
setKineticZoom(boolean enabled)
Sets the state of the kinetic zooming flag.
|
void |
setMainLight(Color color,
MapVec direction)
Sets the parameters for the main light.
|
void |
setPanBounds(MapBounds panBounds)
Sets the map panning bounds constraints.
|
void |
setPanningMode(PanningMode panningMode)
Sets the panning mode.
|
void |
setPivotMode(PivotMode pivotMode)
Sets the pivot mode.
|
void |
setProjectionMode(ProjectionMode projectionMode)
Sets the projection mode.
|
void |
setRotatable(boolean enabled)
Sets the state of the map rotatability flag.
|
void |
setSeamlessPanning(boolean enabled)
Sets the state of seamless horizontal panning flag.
|
void |
setSkyBitmap(Bitmap skyBitmap)
Sets the sky bitmap.
|
void |
setTileDrawSize(int tileDrawSize)
Sets the tile size for drawing map tiles.
|
void |
setTileThreadPoolSize(int poolSize)
Sets the number of threads used by the tile task pool.
|
void |
setTiltRange(MapRange tiltRange)
Sets the tilt range constraint.
|
void |
setUserInput(boolean enabled)
Sets the state of the user input flag.
|
void |
setWatermarkAlignment(float alignmentX,
float alignmentY)
Sets the position of the watermark relative to the screen.
|
void |
setWatermarkBitmap(Bitmap watermarkBitmap)
Sets the watermark bitmap.
|
void |
setWatermarkPadding(float paddingX,
float paddingY)
Sets the padding between the watermark and the edge of the screen.
|
void |
setWatermarkScale(float scale)
Set the watermark relative scale.
|
void |
setZoomRange(MapRange zoomRange)
Sets the zoom range constraint.
|
public static long getCPtr(Options obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Color getAmbientLightColor()
public void setAmbientLight(Color color)
color
- The new color for the ambient light.public Color getMainLightColor()
public MapVec getMainLightDirection()
public void setMainLight(Color color, MapVec direction)
color
- The new color for the main light.direction
- The new direction vector for the main light. (0,0,-1) means straight down, (-0.707,0,-0.707) meanspublic ProjectionMode getProjectionMode()
public void setProjectionMode(ProjectionMode projectionMode)
projectionMode
- The new projection mode.public boolean isClickTypeDetection()
public void setClickTypeDetection(boolean enabled)
enabled
- The new state of the click type detection flag.public int getTileDrawSize()
public void setTileDrawSize(int tileDrawSize)
tileDrawSize
- The new tile size in density-independent pixels (dp).public float getDPI()
public void setDPI(float dpi)
dpi
- The new dots per inch value.public float getDrawDistance()
public void setDrawDistance(float drawDistance)
drawDistance
- The new draw distance value.public int getFieldOfViewY()
public void setFieldOfViewY(int fovY)
fovY
- The new vertical field of view angle in degrees.public PanningMode getPanningMode()
public void setPanningMode(PanningMode panningMode)
panningMode
- The new panning mode.public PivotMode getPivotMode()
public void setPivotMode(PivotMode pivotMode)
pivotMode
- The new pivot mode.public boolean isSeamlessPanning()
public void setSeamlessPanning(boolean enabled)
enabled
- The new state of seamless horizontal panning flag.public int getEnvelopeThreadPoolSize()
public void setEnvelopeThreadPoolSize(int poolSize)
poolSize
- The new envelope task thread pool size.public int getTileThreadPoolSize()
public void setTileThreadPoolSize(int poolSize)
poolSize
- The new tile task thread pool size.public Bitmap getBackgroundBitmap()
public void setBackgroundBitmap(Bitmap backgroundBitmap)
backgroundBitmap
- The new background bitmap.public Bitmap getSkyBitmap()
public void setSkyBitmap(Bitmap skyBitmap)
skyBitmap
- The new sky bitmap.public float getWatermarkAlignmentX()
public float getWatermarkAlignmentY()
public void setWatermarkAlignment(float alignmentX, float alignmentY)
alignmentX
- The new horizontal alignment for the watermark. -1 means the left side,alignmentY
- The new vertical alignment for the watermark. -1 means the bottom,public float getWatermarkScale()
public void setWatermarkScale(float scale)
scale
- The new relative scale value.public Bitmap getWatermarkBitmap()
public void setWatermarkBitmap(Bitmap watermarkBitmap)
watermarkBitmap
- The new watermark bitmap.public float getWatermarkPaddingX()
public float getWatermarkPaddingY()
public void setWatermarkPadding(float paddingX, float paddingY)
paddingX
- The new horizontal padding for the watermark in dp. The default is 4.paddingY
- The new vertical padding for the watermark in dp. The default is 4.public boolean isUserInput()
public void setUserInput(boolean enabled)
enabled
- The new state of the user input flag.public boolean isKineticPan()
public void setKineticPan(boolean enabled)
enabled
- The new state of the kinetic panning flag.public boolean isKineticRotation()
public void setKineticRotation(boolean enabled)
enabled
- The new state of the kinetic rotation flag.public boolean isKineticZoom()
public void setKineticZoom(boolean enabled)
enabled
- The new state of the kinetic zooming flag.public boolean isRotatable()
public void setRotatable(boolean enabled)
enabled
- The new state of the map rotatability flag.public MapRange getTiltRange()
public void setTiltRange(MapRange tiltRange)
tiltRange
- The new tilt range constraint in degrees.public MapRange getZoomRange()
public void setZoomRange(MapRange zoomRange)
zoomRange
- The new zoom range constraint.public MapBounds getPanBounds()
public void setPanBounds(MapBounds panBounds)
panBounds
- The new map bounds constraints.public ScreenPos getFocusPointOffset()
public void setFocusPointOffset(ScreenPos offset)
offset
- The new focus point offset in pixels.public Projection getBaseProjection()
public void setBaseProjection(Projection baseProjection)
baseProjection
- The new base projection.