Class PolygonMarkers

java.lang.Object
mil.nga.geopackage.map.geom.PolygonMarkers
All Implemented Interfaces:
ShapeMarkers, ShapeWithChildrenMarkers

public class PolygonMarkers extends Object implements ShapeWithChildrenMarkers
Polygon with Markers object
  • Constructor Details

    • PolygonMarkers

      public PolygonMarkers(GoogleMapShapeConverter converter)
      Constructor
      Parameters:
      converter - shape converter
  • Method Details

    • getPolygon

      public Polygon getPolygon()
      Get the polygon
      Returns:
      polygon
    • setPolygon

      public void setPolygon(Polygon polygon)
      Set the polygon
      Parameters:
      polygon - polygon
    • add

      public void add(Marker marker)
      Add a marker
      Parameters:
      marker - marker
    • getMarkers

      public List<Marker> getMarkers()
      Get all markers
      Specified by:
      getMarkers in interface ShapeMarkers
      Returns:
      markers
    • setMarkers

      public void setMarkers(List<Marker> markers)
      Set the markers
      Parameters:
      markers - markers
    • addHole

      public void addHole(PolygonHoleMarkers hole)
      Add a polygon hole
      Parameters:
      hole - polygon hole markers
    • getHoles

      public List<PolygonHoleMarkers> getHoles()
      Get the polygon holes
      Returns:
      list of polygon hole markers
    • setHoles

      public void setHoles(List<PolygonHoleMarkers> holes)
      Set the polygon holes
      Parameters:
      holes - list of polygone hole markers
    • update

      public void update()
      Update based upon marker changes
    • remove

      public void remove()
      Remove from the map
    • setVisible

      public void setVisible(boolean visible)
      Updates visibility of all objects
      Specified by:
      setVisible in interface ShapeMarkers
      Parameters:
      visible - visible flag
    • setVisibleMarkers

      public void setVisibleMarkers(boolean visible)
      Updates visibility of the shape representing markers
      Specified by:
      setVisibleMarkers in interface ShapeMarkers
      Parameters:
      visible - visible flag
    • setZIndex

      public void setZIndex(float zIndex)
      Set the z index
      Specified by:
      setZIndex in interface ShapeMarkers
      Parameters:
      zIndex - z index
    • isValid

      public boolean isValid()
      Is it valid
      Returns:
      true if valid
    • isDeleted

      public boolean isDeleted()
      Is it deleted
      Returns:
      true if deleted
    • delete

      public void delete(Marker marker)
      Delete the marker
      Specified by:
      delete in interface ShapeMarkers
      Parameters:
      marker - marker
    • addNew

      public void addNew(Marker marker)
      Add the marker
      Specified by:
      addNew in interface ShapeMarkers
      Parameters:
      marker - marker
    • createChild

      public ShapeMarkers createChild()
      Create a child shape
      Specified by:
      createChild in interface ShapeWithChildrenMarkers
      Returns:
      shape markers