public class CircleDrawable extends JtsDrawable
| Modifier and Type | Field and Description |
|---|---|
static int |
HIGH_QUALITY |
static int |
MEDIUM_QUALITY |
coordFactory, geometry, geomFactory, style| Constructor and Description |
|---|
CircleDrawable(org.oscim.core.GeoPoint center,
double radiusKm)
Constructs a circle given the real-world radius in km.
|
CircleDrawable(org.oscim.core.GeoPoint center,
double radiusKm,
int quadrantSegments,
Style style)
Constructs a circle given the real-world radius in km.
|
CircleDrawable(org.oscim.core.GeoPoint center,
double radiusKm,
Style style)
Constructs a circle given the real-world radius in km.
|
getGeometry, getStyle, loadPoints, setStylepublic static int MEDIUM_QUALITY
public static int HIGH_QUALITY
public CircleDrawable(org.oscim.core.GeoPoint center,
double radiusKm)
center - GeoPoint - center of the circleradiusKm - Radius of the circle in kilometers.public CircleDrawable(org.oscim.core.GeoPoint center,
double radiusKm,
Style style)
center - GeoPoint - center of the circleradiusKm - Radius of the circle in kilometers. The size of the
circle may be distorted due to the Mercator projections
properties.style - FillableGeometryStyle with color and transparency
information for the circlepublic CircleDrawable(org.oscim.core.GeoPoint center,
double radiusKm,
int quadrantSegments,
Style style)
center - GeoPoint - center of the circleradiusKm - Radius of the circle in kilometers. The size of the
circle may be distorted due to the Mercator projections
properties.quadrantSegments - the number of segments a quarter of circle will
have. Use Circle.LOW_PRECISION for quick rendering,
Circle.MEDIUM_PRECISION for good rendering and quality or
Circle.HIGH_PRECISION for high quality.style - FillableGeometryStyle with color and transparency
information for the circle