Class JtsDrawable
java.lang.Object
org.oscim.layers.vector.geometries.JtsDrawable
- All Implemented Interfaces:
Drawable
- Direct Known Subclasses:
CircleDrawable,HexagonDrawable,LineDrawable,PointDrawable,PolygonDrawable,RectangleDrawable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.locationtech.jts.geom.impl.PackedCoordinateSequenceFactoryprotected org.locationtech.jts.geom.Geometrystatic final org.locationtech.jts.geom.GeometryFactoryprotected intprotected Style -
Constructor Summary
ConstructorsConstructorDescriptionJtsDrawable(org.locationtech.jts.geom.Geometry geometry, Style style) JtsDrawable(Style style) -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.GeometryintPriority of drawable, the larger the value, the higher it will appear when drawn in the VectorLayer.getStyle()protected static GeomBuilderloadPoints(GeomBuilder gb, List<org.oscim.core.GeoPoint> points) voidsetPriority(int priority) void
-
Field Details
-
coordFactory
public static final org.locationtech.jts.geom.impl.PackedCoordinateSequenceFactory coordFactory -
geomFactory
public static final org.locationtech.jts.geom.GeometryFactory geomFactory -
style
-
geometry
protected org.locationtech.jts.geom.Geometry geometry -
priority
protected int priority
-
-
Constructor Details
-
JtsDrawable
-
JtsDrawable
-
-
Method Details
-
setStyle
- Parameters:
style-
-
getStyle
-
getGeometry
public org.locationtech.jts.geom.Geometry getGeometry()- Specified by:
getGeometryin interfaceDrawable- Returns:
-
getPriority
public int getPriority()Description copied from interface:DrawablePriority of drawable, the larger the value, the higher it will appear when drawn in the VectorLayer.- Specified by:
getPriorityin interfaceDrawable- See Also:
-
setPriority
public void setPriority(int priority) -
loadPoints
-