com.supermap.mapping.dyn
Class DynamicPoint
- java.lang.Object
-
- com.supermap.mapping.dyn.DynamicElement
-
- com.supermap.mapping.dyn.DynamicPoint
-
public class DynamicPoint extends DynamicElement
The dynamic layer point object class.
-
-
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 DynamicPoint()
Create a new point object on the dynamic layer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
fromGeometry(Geometry geometry)
Create a new point object on the dynamic layer through Geometry.DynamicAlignment
getAlignment()
Gets the alignment.float
getOffsetX()
Gets the background image X offset.float
getOffsetY()
Gets the background image Y offset.void
setAlignment(DynamicAlignment alignment)
Sets the alignmentvoid
setOffsetX(float offsetX)
Sets the background image X offset.void
setOffsetY(float offsetY)
Sets the background image Y offset.void
setPoint(Point2D pt)
Sets point-
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
-
DynamicPoint
public DynamicPoint()
Create a new point object on the dynamic layer.
-
-
Method Detail
-
fromGeometry
public boolean fromGeometry(Geometry geometry)
Create a new point object on the dynamic layer through Geometry.- Specified by:
fromGeometry
in classDynamicElement
- Parameters:
geometry
- Geographic elements- Returns:
- Whether it is successful.
-
setAlignment
public void setAlignment(DynamicAlignment alignment)
Sets the alignment- Parameters:
alignment
- Alignment
-
getAlignment
public DynamicAlignment getAlignment()
Gets the alignment.- Returns:
- Alignment
-
setOffsetX
public void setOffsetX(float offsetX)
Sets the background image X offset.- Parameters:
offsetX
- Position offset
-
getOffsetX
public float getOffsetX()
Gets the background image X offset.- Returns:
- The X offset.
-
setOffsetY
public void setOffsetY(float offsetY)
Sets the background image Y offset.- Parameters:
offsetY
- Position offset
-
getOffsetY
public float getOffsetY()
Gets the background image Y offset.- Returns:
- The Y offset.
-
setPoint
public void setPoint(Point2D pt)
Sets point- Parameters:
pt
- The point to be set is used to set the position where the object is displayed.
-
-