Class PolylineMarkers

java.lang.Object
mil.nga.geopackage.map.geom.PolylineMarkers
All Implemented Interfaces:
ShapeMarkers

public class PolylineMarkers extends Object implements ShapeMarkers
Polyline with Markers object
  • Constructor Details

    • PolylineMarkers

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

    • getPolyline

      public Polyline getPolyline()
      Get the polyline
      Returns:
      polyline
    • setPolyline

      public void setPolyline(Polyline polyline)
      Set the polyline
      Parameters:
      polyline - polyline
    • 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 - list of 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