Class CircleDrawable

java.lang.Object
org.oscim.layers.vector.geometries.JtsDrawable
org.oscim.layers.vector.geometries.CircleDrawable
All Implemented Interfaces:
Drawable

public class CircleDrawable extends JtsDrawable
Predefined class for drawing circles on the map. Circles are by default made of 32 segments.
  • 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 circle
      radiusKm - Radius of the circle in kilometers.
    • CircleDrawable

      public CircleDrawable(org.oscim.core.GeoPoint center, double radiusKm, 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 circle
      radiusKm - 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 circle
      radiusKm - 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