public class Options
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
swigCMemOwn |
构造器和说明 |
---|
Options(long cPtr,
boolean cMemoryOwn) |
限定符和类型 | 方法和说明 |
---|---|
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()
获取背景图片,可能为空
|
Projection |
getBaseProjection()
Returns the base projection.
|
float |
getCompassAlignmentX()
返回指北针的水平对齐方式。
|
float |
getCompassAlignmentY()
返回指北针的垂直对齐方式。
|
ScreenPos |
getCompassPadding()
返回指北针的padding值。
|
float |
getCompassScale()
返回指北针图标相对大小。
|
static long |
getCPtr(Options obj) |
float |
getDPI()
获取DPI
|
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()
获取地图移动范围限制(基于投影系统的坐标
projection's coordinate system. |
PanningMode |
getPanningMode()
Returns the panning mode.
|
PivotMode |
getPivotMode()
Returns the pivot mode.
|
ProjectionMode |
getProjectionMode()
Returns the projection mode.
|
float |
getScaleBarAlignmentX()
返回比例尺的水平对齐方式。
|
float |
getScaleBarAlignmentY()
返回比例尺的垂直对齐方式。
|
ScreenPos |
getScaleBarPadding()
返回比例尺与屏幕边缘之间的空间大小。
|
float |
getScaleBarScale()
返回比例尺图片相对大小。
|
Bitmap |
getSkyBitmap()
获取天空图片,可能为空
|
int |
getTileDrawSize()
Returns the tile size used for drawing map tiles.
|
int |
getTileThreadPoolSize()
获得瓦片任务池的线程数量
|
MapRange |
getTiltRange()
获取地图倾斜角度范围,单位为度
|
float |
getWatermarkAlignmentX()
Returns the horizontal alignment of the watermark.
|
float |
getWatermarkAlignmentY()
Returns the vertical alignment of the watermark.
|
Bitmap |
getWatermarkBitmap()
Returns the watermark bitmap.
|
ScreenPos |
getWatermarkPadding()
Returns the padding of the watermark.
|
float |
getWatermarkScale()
Returns the watermark relative scale.
|
MapRange |
getZoomRange()
获取地图缩放级别范围
|
float |
getZoomViewAlignmentX()
返回缩放按钮的水平对齐方式。
|
float |
getZoomViewAlignmentY()
返回缩放按钮的垂直对齐方式。
|
ScreenPos |
getZoomViewPadding()
返回缩放按钮与屏幕边缘之间的空间大小。
|
float |
getZoomViewScale()
返回缩放按钮图标的相对大小。
|
int |
hashCode()
Returns the hash value of this object.
|
boolean |
isClickTypeDetection()
获取点击类型检测状态
|
boolean |
isCompassEnble()
判断指南针是否启用
|
boolean |
isInfoViewEnble() |
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()
返回地图的旋转标志的状态。
|
boolean |
isScaleBarEnble()
判断比例尺是否被启用
|
boolean |
isSeamlessPanning()
Returns the state of seamless horizontal panning flag.
|
boolean |
isTiltable()
获取地图是否可倾斜标志
|
boolean |
isTiltGestureReversed()
Returns true if tilting gesture direction is reversed (and same as with Google Maps).
|
boolean |
isUserInput()
Returns the state of the user input flag.
|
boolean |
isZoomViewEnble()
判断地图缩放控件是否启用
|
void |
setAmbientLightColor(Color color)
Sets the ambient light color.
|
void |
setBackgroundBitmap(Bitmap backgroundBitmap)
设置背景图片。
|
void |
setBackGroundColor(Color color)
设置mapview的背景颜色
|
void |
setBaseProjection(Projection baseProjection)
Sets the base projection.
|
void |
setClickTypeDetection(boolean enabled)
Sets the state of the click type detection flag.
|
void |
setCompassAlignment(float alignmentX,
float alignmentY) |
void |
setCompassAlignmentX(float alignmentX)
设置指北针相对于屏幕的水平位置。
|
void |
setCompassAlignmentY(float alignmentY)
设置指北针相对于屏幕的位置。
|
void |
setCompassEnble(boolean enble)
设置是否启用指南针
|
void |
setCompassPadding(ScreenPos padding)
设置指北针和屏幕边缘之间的填充值。
|
void |
setCompassResetVisible(boolean visible)
设置指北针复位后是否可见
|
void |
setCompassScale(float scale)
设置指北针图标相对大小。
|
void |
setDPI(float dpi)
设置dpi。
|
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 |
setInfoViewEnble(boolean enble) |
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 |
setMainLightColor(Color color)
Sets the color of the main light.
|
void |
setMainLightDirection(MapVec direction)
Sets the direction of the main light.
|
void |
setPanBounds(MapBounds panBounds)
设置地图移动范围限制。
|
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)
设置地图的旋转标志的状态。
|
void |
setScaleBarAlignment(float alignmentX,
float alignmentY)
设置比例尺相对于屏幕的水平和垂直位置
|
void |
setScaleBarAlignmentX(float alignmentX)
设置比例尺相对于屏幕的水平位置。
|
void |
setScaleBarAlignmentY(float alignmentY)
设置比例尺相对于屏幕的垂直位置。
|
void |
setScaleBarEnble(boolean enble)
设置是否启用比例尺
|
void |
setScaleBarPadding(ScreenPos padding)
设置比例尺与屏幕边缘之间的空间大小。
|
void |
setScaleBarScale(float scale)
设置比例尺图片相对大小。
|
void |
setSeamlessPanning(boolean enabled)
Sets the state of seamless horizontal panning flag.
|
void |
setSkyBitmap(Bitmap skyBitmap)
设置天空图片。
|
void |
setTileDrawSize(int tileDrawSize)
Sets the tile size for drawing map tiles.
|
void |
setTileThreadPoolSize(int poolSize)
设置瓦片任务池的线程数量。
|
void |
setTiltable(boolean enabled)
设置地图俯仰能否改变的标志。
|
void |
setTiltGestureReversed(boolean reversed)
Sets the tilting gesture direction.
|
void |
setTiltRange(MapRange tiltRange)
设置地图倾斜角度范围,最小值30,最大值90,缺省值为MapRange(30, 90).
|
void |
setUserInput(boolean enabled)
Sets the state of the user input flag.
|
void |
setWatermarkAlignmentX(float alignmentX)
Sets the position of the watermark relative to the screen.
|
void |
setWatermarkAlignmentY(float alignmentY)
Sets the position of the watermark relative to the screen.
|
void |
setWatermarkBitmap(Bitmap watermarkBitmap)
Sets the watermark bitmap.
|
void |
setWatermarkPadding(ScreenPos padding)
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)
设置地图缩放级别范围,最小值0,最大值24。
|
void |
setZoomViewAlignment(float alignmentX,
float alignmentY)
设置缩放按钮相对于屏幕的水平和垂直位置。
|
void |
setZoomViewAlignmentX(float alignmentX)
设置缩放按钮相对于屏幕的水平位置。
|
void |
setZoomViewAlignmentY(float alignmentY)
设置缩放按钮相对于屏幕的垂直位置。
|
void |
setZoomViewEnble(boolean enble)
设置地图缩放控件是否启用
|
void |
setZoomViewPadding(ScreenPos padding)
设置缩放按钮与屏幕边缘之间的填充位置。
|
void |
setZoomViewScale(float scale)
设置缩放按钮图片相对大小。
|
public static long getCPtr(Options obj)
protected void finalize()
finalize
在类中 java.lang.Object
public void delete()
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
obj
- The reference object.public int hashCode()
hashCode
在类中 java.lang.Object
public Color getAmbientLightColor()
public void setAmbientLightColor(Color color)
color
- The new color for the ambient light.public Color getMainLightColor()
public void setMainLightColor(Color color)
color
- The new color for the main light.public MapVec getMainLightDirection()
public void setMainLightDirection(MapVec direction)
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
- DPIpublic 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 boolean isTiltGestureReversed()
public void setTiltGestureReversed(boolean reversed)
reversed
- True if Google Maps compatible mode should be used. False otherwise (default).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
- 瓦片任务池的线程数量public Bitmap getBackgroundBitmap()
public void setBackgroundBitmap(Bitmap backgroundBitmap)
backgroundBitmap
- 背景图片public Bitmap getSkyBitmap()
public void setSkyBitmap(Bitmap skyBitmap)
skyBitmap
- 天空图片public float getWatermarkAlignmentX()
public void setWatermarkAlignmentX(float alignmentX)
alignmentX
- The new horizontal alignment for the watermark. -1 means the left side,public float getWatermarkAlignmentY()
public void setWatermarkAlignmentY(float alignmentY)
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 ScreenPos getWatermarkPadding()
public void setWatermarkPadding(ScreenPos padding)
padding
- The new padding for the watermark in dp. The default is 4,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
- 地图的旋转标志的新状态。public boolean isTiltable()
public void setTiltable(boolean enabled)
public MapRange getTiltRange()
public void setTiltRange(MapRange tiltRange)
tiltRange
- 地图倾斜角度范围public MapRange getZoomRange()
public void setZoomRange(MapRange zoomRange)
zoomRange
- 地图缩放级别范围public MapBounds getPanBounds()
public void setPanBounds(MapBounds panBounds)
panBounds
- 地图移动范围限制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.public void setCompassResetVisible(boolean visible)
visible
- 指北针复位后是否可见public void setCompassEnble(boolean enble)
enble
- 是否启用public boolean isCompassEnble()
public float getCompassAlignmentX()
public void setCompassAlignmentX(float alignmentX)
alignmentX
- 指北针相对于屏幕水平位置。-1表示左边,0表示中间,1表示右边。默认是1。public float getCompassAlignmentY()
public void setCompassAlignmentY(float alignmentY)
alignmentY
- 指北针相对于屏幕垂直位置。-1表示底部,0表示中间,1表示顶部。默认是1。public void setCompassAlignment(float alignmentX, float alignmentY)
public float getCompassScale()
public void setCompassScale(float scale)
scale
- 新的图标相对大小值。public ScreenPos getCompassPadding()
public void setCompassPadding(ScreenPos padding)
padding
- 指北针和屏幕边缘之间新的填充值dp。默认是4,4。public void setZoomViewEnble(boolean enble)
enble
- true表示启用public boolean isZoomViewEnble()
public void setInfoViewEnble(boolean enble)
public boolean isInfoViewEnble()
public float getZoomViewAlignmentX()
public void setZoomViewAlignmentX(float alignmentX)
alignmentX
- 缩放按钮相对于屏幕新的水平位置。 -1表示左边,0表示中间,1表示右边。默认是1。public float getZoomViewAlignmentY()
public void setZoomViewAlignmentY(float alignmentY)
alignmentY
- 缩放按钮相对于屏幕新的垂直位置。 -1表示底部,0表示中间,1表示顶部。默认是-1。public void setZoomViewAlignment(float alignmentX, float alignmentY)
alignmentX
- 缩放按钮相对于屏幕新的水平位置。 -1表示左边,0表示中间,1表示右边。默认是1。alignmentY
- 缩放按钮相对于屏幕新的垂直位置。 -1表示底部,0表示中间,1表示顶部。默认是-1。public float getZoomViewScale()
public void setZoomViewScale(float scale)
scale
- 缩放按钮图片新的相对大小。public ScreenPos getZoomViewPadding()
public void setZoomViewPadding(ScreenPos padding)
padding
- 缩放按钮与屏幕边缘之间的填充位置dp。默认的是4,4。public void setScaleBarEnble(boolean enble)
enble
- 是否启用比例尺public boolean isScaleBarEnble()
public float getScaleBarAlignmentX()
public void setScaleBarAlignmentX(float alignmentX)
alignmentX
- 比例尺相对于屏幕新的水平位置。 -1表示左边,0表示中间,1表示右边。默认是1。public float getScaleBarAlignmentY()
public void setScaleBarAlignmentY(float alignmentY)
alignmentY
- 比例尺相对于屏幕新的垂直位置。 -1表示底部,0表示中间,1表示顶部。默认是-1。public void setScaleBarAlignment(float alignmentX, float alignmentY)
alignmentX
- 比例尺相对于屏幕新的水平位置。 -1表示左边,0表示中间,1表示右边。默认是1。alignmentY
- 比例尺相对于屏幕新的垂直位置。 -1表示底部,0表示中间,1表示顶部。默认是-1。public float getScaleBarScale()
public void setScaleBarScale(float scale)
scale
- 比例尺图片新的相对大小。public ScreenPos getScaleBarPadding()
public void setScaleBarPadding(ScreenPos padding)
padding
- 比例尺与屏幕边缘之间的空间大小dp。 默认是4,4。public void setBackGroundColor(Color color)
color
- 背景颜色