com.supermap.mapping.dyn
Class DynamicCircle
- java.lang.Object
-
- com.supermap.mapping.dyn.DynamicElement
-
- com.supermap.mapping.dyn.DynamicCircle
-
public class DynamicCircle extends DynamicElement
dynamic layer circle object
-
-
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 DynamicCircle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
fromGeometry(Geometry geometry)
Convert dynamic layer circle objects according toGeoCircle
GeoCirledouble
getRadius()
Obtains radiusvoid
setPoint(Point2D pt)
sets pointvoid
setRadius(double radius)
Sets radius of circle-
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
-
-
-
-
Method Detail
-
fromGeometry
public boolean fromGeometry(Geometry geometry)
Convert dynamic layer circle objects according toGeoCircle
GeoCirle- Specified by:
fromGeometry
in classDynamicElement
- Parameters:
geometry
- Geographic elements- Returns:
- A boolean, Returns true if the constructor successful; Otherwise false.
-
setRadius
public void setRadius(double radius)
Sets radius of circle- Parameters:
radius
- radius
-
getRadius
public double getRadius()
Obtains radius- Returns:
- return circle radius
-
setPoint
public void setPoint(Point2D pt)
sets point- Parameters:
pt
- center points
-
-