public final class Cercle extends Geometry<Cercle,CercleStyle>
Cercle feature. The Cercle draws cercle polygon with center and radius.
Usage example:
Cercle cercle = new Cercle(context, "My Cercle").setCenter(coordinates).setRadius(radius);
MapController.putFeature(cercle);
Copyright (c) 2017 Nexusgeographics All rights reserved.
Constructor and Description |
---|
Cercle(android.content.Context context)
Instantiates a new Geometry.
|
Cercle(android.content.Context context,
java.lang.String name)
Instantiates a new Geometry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
LatLng |
getCenter() |
int |
getQuadrantSegments() |
double |
getRadius() |
int |
hashCode() |
Cercle |
setCenter(LatLng center)
Sets cercle center
|
Cercle |
setQuadrantSegments(int quadrantSegments) |
Cercle |
setRadius(double radius)
Sets cercle radius in meters
|
getStyle, setStyle, toString
compareTo, getContext, getId, getInfo, getName, isCreated, remove, setInfo
addObserver, removeObserver
public Cercle(@NonNull android.content.Context context)
context
- the contextpublic Cercle(@NonNull android.content.Context context, @NonNull java.lang.String name)
context
- the contextname
- the feature namepublic LatLng getCenter()
public Cercle setCenter(LatLng center)
center
- the centerpublic double getRadius()
public Cercle setRadius(double radius)
radius
- in meterspublic int getQuadrantSegments()
public Cercle setQuadrantSegments(int quadrantSegments)
public boolean equals(java.lang.Object o)
equals
in class Geometry<Cercle,CercleStyle>
public int hashCode()
hashCode
in class Geometry<Cercle,CercleStyle>