Class CircleDrawable
java.lang.Object
org.oscim.layers.vector.geometries.JtsDrawable
org.oscim.layers.vector.geometries.CircleDrawable
- All Implemented Interfaces:
Drawable
Predefined class for drawing circles on the map. Circles are by default
made of 32 segments.
-
Field Summary
FieldsFields inherited from class org.oscim.layers.vector.geometries.JtsDrawable
coordFactory, geometry, geomFactory, priority, style -
Constructor Summary
ConstructorsConstructorDescriptionCircleDrawable(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. -
Method Summary
Methods inherited from class org.oscim.layers.vector.geometries.JtsDrawable
getGeometry, getPriority, getStyle, loadPoints, setPriority, setStyle
-
Field Details
-
MEDIUM_QUALITY
public static int MEDIUM_QUALITY -
HIGH_QUALITY
public static int HIGH_QUALITY
-
-
Constructor Details
-
CircleDrawable
public CircleDrawable(org.oscim.core.GeoPoint center, double radiusKm) Constructs a circle given the real-world radius in km. Keep in mind that this technique is computationally costly for circles with huge number or segments.- Parameters:
center- GeoPoint - center of the circleradiusKm- Radius of the circle in kilometers.
-
CircleDrawable
Constructs a circle given the real-world radius in km. Keep in mind that this technique is computationally costly for circles with huge number or segments.- Parameters:
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 circle
-
CircleDrawable
public CircleDrawable(org.oscim.core.GeoPoint center, double radiusKm, int quadrantSegments, Style style) Constructs a circle given the real-world radius in km. Keep in mind that this technique is computationally costly for circles with huge number or segments.- Parameters:
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
-