com.supermap.mapping.dyn
Class DynamicText
- java.lang.Object
-
- com.supermap.mapping.dyn.DynamicElement
-
- com.supermap.mapping.dyn.DynamicText
-
public class DynamicText extends DynamicElement
The text object on the dynamic layer.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.supermap.mapping.dyn.DynamicElement
DynamicElement.ElementType, DynamicElement.OnClickListener, DynamicElement.OnDownAndUpListener, DynamicElement.OnLongPressListener
-
-
Constructor Summary
Constructors Constructor and Description DynamicText()
Create a new text object on the dynamic layer.DynamicText(java.lang.String text, Point2D anchorPoint)
Create a new dynamic layer text object based on the parameters specified.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
fromGeometry(Geometry geometry)
Create the dynamic data through Geometry.DynamicAlignment
getAlignment()
Gets the alignment.java.lang.String
getText()
Gets the display text.void
setAlignment(DynamicAlignment alignment)
Sets the alignmentvoid
setText(java.lang.String text)
Sets the display text.-
Methods inherited from class com.supermap.mapping.dyn.DynamicElement
addAnimator, addPoint, dispose, getBounds, getGeoPoints, getID, getMinShowScale, getName, getNameColor, getNameOffsetX, getNameOffsetY, getNamePosition, getNameSize, getNameTextAlign, getOnDownAndUpListener, getOnLongPressListener, getPart, getStyle, getTag, getType, getUserData, isNameVisible, setMinShowScale, setName, setNameColor, setNameOffsetX, setNameOffsetY, setNamePosition, setNameSize, setNameTextAlign, setNameVisible, setOnClickListenner, setOnDownAndUpListener, setOnLongPressListener, setStyle, setTag, setUserData, updatePoint
-
-
-
-
Constructor Detail
-
DynamicText
public DynamicText()
Create a new text object on the dynamic layer.
-
DynamicText
public DynamicText(java.lang.String text, Point2D anchorPoint)
Create a new dynamic layer text object based on the parameters specified.- Parameters:
text
- Show textanchorPoint
- Show location points.
-
-
Method Detail
-
setText
public void setText(java.lang.String text)
Sets the display text.- Parameters:
text
- Show text
-
fromGeometry
public boolean fromGeometry(Geometry geometry)
Create the dynamic data through Geometry.- Specified by:
fromGeometry
in classDynamicElement
- Parameters:
geometry
- Geographic elements- Returns:
- A boolean, Returns true if the constructor successful; Otherwise false.
-
getText
public java.lang.String getText()
Gets the display text.- Returns:
- Display the text.
-
setAlignment
public void setAlignment(DynamicAlignment alignment)
Sets the alignment- Parameters:
alignment
- The Dynamic Object Alignment
-
getAlignment
public DynamicAlignment getAlignment()
Gets the alignment.- Returns:
- Gets the alignment.
-
-