Class JtsDrawable

java.lang.Object
org.oscim.layers.vector.geometries.JtsDrawable
All Implemented Interfaces:
Drawable
Direct Known Subclasses:
CircleDrawable, HexagonDrawable, LineDrawable, PointDrawable, PolygonDrawable, RectangleDrawable

public class JtsDrawable extends Object implements Drawable
  • Field Details

    • coordFactory

      public static final org.locationtech.jts.geom.impl.PackedCoordinateSequenceFactory coordFactory
    • geomFactory

      public static final org.locationtech.jts.geom.GeometryFactory geomFactory
    • style

      protected Style style
    • geometry

      protected org.locationtech.jts.geom.Geometry geometry
    • priority

      protected int priority
  • Constructor Details

    • JtsDrawable

      public JtsDrawable(Style style)
    • JtsDrawable

      public JtsDrawable(org.locationtech.jts.geom.Geometry geometry, Style style)
  • Method Details

    • setStyle

      public void setStyle(Style style)
      Parameters:
      style -
    • getStyle

      public Style getStyle()
      Specified by:
      getStyle in interface Drawable
      Returns:
    • getGeometry

      public org.locationtech.jts.geom.Geometry getGeometry()
      Specified by:
      getGeometry in interface Drawable
      Returns:
    • getPriority

      public int getPriority()
      Description copied from interface: Drawable
      Priority of drawable, the larger the value, the higher it will appear when drawn in the VectorLayer.
      Specified by:
      getPriority in interface Drawable
      See Also:
    • setPriority

      public void setPriority(int priority)
    • loadPoints

      protected static GeomBuilder loadPoints(GeomBuilder gb, List<org.oscim.core.GeoPoint> points)