Class PolygonDrawable

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

public class PolygonDrawable extends JtsDrawable
Predefined class to draw polygons on the map.
  • Field Summary

    Fields inherited from class org.oscim.layers.vector.geometries.JtsDrawable

    coordFactory, geometry, geomFactory, priority, style
  • Constructor Summary

    Constructors
    Constructor
    Description
    PolygonDrawable(List<org.oscim.core.GeoPoint> points)
    Creates a polygon using the coordinates provided in the List
    PolygonDrawable(List<org.oscim.core.GeoPoint> points, List<org.oscim.core.GeoPoint> holePoints, float lineWidth, int lineColor, int fillColor, float fillAlpha)
    Create a polygon using the Coordinates provided in the first List, with a hole build from the Coordinates in the second List and outline and fill - color and alpha
    PolygonDrawable(List<org.oscim.core.GeoPoint> points, List<org.oscim.core.GeoPoint> holePoints, Style style)
    Creates a polygon from a List of coordinates in the first List, with a hole from coordinates in the second List and requires a FillableGeometryStyle for the color information
    PolygonDrawable(List<org.oscim.core.GeoPoint> points, Style style)
     
    PolygonDrawable(org.locationtech.jts.geom.Geometry polygon, Style style)
    Creates a polygon using a JTS geometry and a FillableGeometryStyle
    PolygonDrawable(org.oscim.core.GeoPoint[] points, org.oscim.core.GeoPoint[] holePoints, float lineWidth, int lineColor, int fillColor, float fillAlpha)
    Create a polygon given the array of GeoPoints for the boundary, the array of GeoPoints for the hole and outline and fill color and alpha
    PolygonDrawable(Style style, org.oscim.core.GeoPoint... points)
    Create a polygon given the array of GeoPoints and a FillableGeometryStyle
  • Method Summary

    Methods inherited from class org.oscim.layers.vector.geometries.JtsDrawable

    getGeometry, getPriority, getStyle, loadPoints, setPriority, setStyle

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PolygonDrawable

      public PolygonDrawable(org.locationtech.jts.geom.Geometry polygon, Style style)
      Creates a polygon using a JTS geometry and a FillableGeometryStyle
      Parameters:
      polygon -
      style -
    • PolygonDrawable

      public PolygonDrawable(List<org.oscim.core.GeoPoint> points)
      Creates a polygon using the coordinates provided in the List
      Parameters:
      points -
    • PolygonDrawable

      public PolygonDrawable(Style style, org.oscim.core.GeoPoint... points)
      Create a polygon given the array of GeoPoints and a FillableGeometryStyle
      Parameters:
      points -
      style -
    • PolygonDrawable

      public PolygonDrawable(List<org.oscim.core.GeoPoint> points, Style style)
      Parameters:
      points -
      style -
    • PolygonDrawable

      public PolygonDrawable(org.oscim.core.GeoPoint[] points, org.oscim.core.GeoPoint[] holePoints, float lineWidth, int lineColor, int fillColor, float fillAlpha)
      Create a polygon given the array of GeoPoints for the boundary, the array of GeoPoints for the hole and outline and fill color and alpha
      Parameters:
      points -
      holePoints -
      outlineColor -
      outlineAlpha -
      fillColor -
      fillAlpha -
    • PolygonDrawable

      public PolygonDrawable(List<org.oscim.core.GeoPoint> points, List<org.oscim.core.GeoPoint> holePoints, float lineWidth, int lineColor, int fillColor, float fillAlpha)
      Create a polygon using the Coordinates provided in the first List, with a hole build from the Coordinates in the second List and outline and fill - color and alpha
      Parameters:
      points -
      holePoints -
      outlineColor -
      outlineAlpha -
      fillColor -
      fillAlpha -
    • PolygonDrawable

      public PolygonDrawable(List<org.oscim.core.GeoPoint> points, List<org.oscim.core.GeoPoint> holePoints, Style style)
      Creates a polygon from a List of coordinates in the first List, with a hole from coordinates in the second List and requires a FillableGeometryStyle for the color information
      Parameters:
      points -
      holePoints -
      style -