public class Text extends Label
swigCMemOwn
构造器和说明 |
---|
Text(Billboard baseBillboard,
TextStyle style,
java.lang.String text)
基于样式和关联的billboard创建文字对象
|
Text(Geometry geometry,
TextStyle style,
java.lang.String text)
基于几何对象和样式创建文字对象
|
Text(long cPtr,
boolean cMemoryOwn) |
Text(MapPos pos,
TextStyle style,
java.lang.String text)
基于坐标位置和样式创建文字对象
|
限定符和类型 | 方法和说明 |
---|---|
void |
delete() |
Bitmap |
drawBitmap(float dpToPX)
Draws a custom bitmap for this label that will be used for drawing the label on the map.
|
protected void |
finalize() |
static long |
getCPtr(Text obj) |
TextStyle |
getStyle()
获取文字样式
|
java.lang.String |
getText()
获取显示的文字
|
void |
setStyle(TextStyle style)
设置文字样式
|
void |
setText(java.lang.String text)
设置显示的文字
|
static Text |
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.
|
getBaseBillboard, getBounds, getCPtr, getGeometry, getRootGeometry, getRotation, setBaseBillboard, setGeometry, setPos, setRotation
attachTerrain, attachTerrain, autoNotifyElementChanged, equals, getCPtr, getId, getInternalElevation, getMetaData, getMetaDataElement, hashCode, hasInternalElevation, isVisible, notifyElementChanged, setId, setMetaData, setMetaDataElement, setVisible
public Text(long cPtr, boolean cMemoryOwn)
public Text(Billboard baseBillboard, TextStyle style, java.lang.String text)
baseBillboard
- 文字关联的billboardstyle
- 文字样式text
- 显示文字public Text(Geometry geometry, TextStyle style, java.lang.String text)
geometry
- 文字几何对象style
- 文字样式text
- 显示文字public static long getCPtr(Text obj)
public static Text swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
cPtr
- The native pointer of the instance.cMemoryOwn
- The ownership flag.public Bitmap drawBitmap(float dpToPX)
Label
drawBitmap
在类中 Label
dpToPX
- The value used for converting display independent pixels (dp) to pixels (px).public java.lang.String getText()
public void setText(java.lang.String text)
text
- 显示的文字public void setStyle(TextStyle style)
style
- 文字样式public java.lang.String swigGetClassName()
swigGetClassName
在类中 Label
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
在类中 Label