public class Circle extends MapObject
Constructor and Description |
---|
Circle(Map map)
Creates new Circle object.
|
Modifier and Type | Method and Description |
---|---|
LatLngBounds |
getBounds()
Gets the LatLngBounds of this Circle.
|
LatLng |
getCenter()
Returns the center of this circle.
|
boolean |
getDraggable()
Returns whether this circle can be dragged by the user.
|
boolean |
getEditable()
Returns whether this circle can be edited by the user.
|
double |
getRadius()
Returns the radius of this circle (in meters).
|
boolean |
getVisible()
Returns whether this circle is visible on the map.
|
void |
setCenter(LatLng value)
Sets the center of this circle.
|
void |
setDraggable(boolean value)
If set to true, the user can drag this circle over the map.
|
void |
setEditable(boolean value)
If set to true, the user can edit this circle by dragging the control points shown at the center and around the circumference of the circle.
|
void |
setOptions(CircleOptions options)
Sets circle options.
|
void |
setRadius(double value)
Sets the radius of this circle (in meters).
|
void |
setVisible(boolean value)
Hides this circle if set to false.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public Circle(Map map)
map
- owner Map objectpublic boolean getDraggable()
setDraggable(boolean)
public boolean getEditable()
setEditable(boolean)
public boolean getVisible()
setVisible(boolean)
public LatLngBounds getBounds()
public LatLng getCenter()
setCenter(com.teamdev.jxmaps.LatLng)
public double getRadius()
setRadius(double)
public void setRadius(double value)
value
- new value of radiusgetRadius()
public void setDraggable(boolean value)
value
- new value of draggable propertygetDraggable()
public void setEditable(boolean value)
value
- new value of draggable propertygetEditable()
public void setVisible(boolean value)
value
- visible flaggetVisible()
public void setOptions(CircleOptions options)
options
- circle options objectpublic void setCenter(LatLng value)
value
- new center coordinatesgetCenter()