Class PolygonDrawable
java.lang.Object
org.oscim.layers.vector.geometries.JtsDrawable
org.oscim.layers.vector.geometries.PolygonDrawable
- All Implemented Interfaces:
Drawable
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
ConstructorsConstructorDescriptionPolygonDrawable(List<org.oscim.core.GeoPoint> points) Creates a polygon using the coordinates provided in the ListPolygonDrawable(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 alphaPolygonDrawable(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 informationPolygonDrawable(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 FillableGeometryStylePolygonDrawable(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 alphaPolygonDrawable(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
-
Constructor Details
-
PolygonDrawable
Creates a polygon using a JTS geometry and a FillableGeometryStyle- Parameters:
polygon-style-
-
PolygonDrawable
Creates a polygon using the coordinates provided in the List- Parameters:
points-
-
PolygonDrawable
Create a polygon given the array of GeoPoints and a FillableGeometryStyle- Parameters:
points-style-
-
PolygonDrawable
- 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-
-