public class Text extends Label
swigCMemOwn| Constructor and Description |
|---|
Text(Billboard baseBillboard,
TextStyle style,
java.lang.String text)
Constructs a Text object with the specified style and attaches it to a billboard element.
|
Text(Geometry geometry,
TextStyle style,
java.lang.String text)
Constructs a Text object from a geometry object and a style.
|
Text(long cPtr,
boolean cMemoryOwn) |
Text(MapPos pos,
TextStyle style,
java.lang.String text)
Constructs a Text object from a map position and a style.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
Bitmap |
drawBitmap(float dpToPX)
Draws a custom bitmap for this label that will be used for drawing the label on the map.
The method is called each time the label gets reloaded internally. |
protected void |
finalize() |
static long |
getCPtr(Text obj) |
TextStyle |
getStyle()
Returns the style of this text label.
|
java.lang.String |
getText()
Returns the display text.
|
void |
setStyle(TextStyle style)
Sets the style for this text label.
|
void |
setText(java.lang.String text)
Sets the display 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.
|
getCPtr, setStyle, swigDirectorDisconnect, swigReleaseOwnership, swigTakeOwnershipgetBaseBillboard, getBounds, getCPtr, getGeometry, getRootGeometry, getRotation, setBaseBillboard, setGeometry, setPos, setRotationequals, getCPtr, getId, getMetaData, getMetaDataElement, hashCode, isVisible, notifyElementChanged, setId, setMetaData, setMetaDataElement, setVisiblepublic Text(long cPtr,
boolean cMemoryOwn)
public Text(Billboard baseBillboard, TextStyle style, java.lang.String text)
baseBillboard - The billboard this text label will be attached to.style - The style that defines what this text label looks like.text - The text to be displayed.public Text(Geometry geometry, TextStyle style, java.lang.String text)
geometry - The geometry object that defines the location of this text label.style - The style that defines what this text label looks like.text - The text to be displayed.public Text(MapPos pos, TextStyle style, java.lang.String text)
pos - The map position that defines the location of this text label.style - The style that defines what this text label looks like.text - The text to be displayed.public static long getCPtr(Text obj)
public static Text swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public Bitmap drawBitmap(float dpToPX)
LabeldrawBitmap in class LabeldpToPX - 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 - The text to be displayed.public TextStyle getStyle()
public void setStyle(TextStyle style)
public java.lang.String swigGetClassName()
swigGetClassName in class Labelpublic java.lang.Object swigGetDirectorObject()
swigGetDirectorObject in class Label