Package mil.nga.geopackage.map.geom
Class PolylineMarkers
java.lang.Object
mil.nga.geopackage.map.geom.PolylineMarkers
- All Implemented Interfaces:
ShapeMarkers
Polyline with Markers object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a markervoid
Add the markervoid
Delete the markerGet all markersGet the polylineboolean
Is it deletedboolean
isValid()
Is it validvoid
remove()
Remove from the mapvoid
setMarkers
(List<Marker> markers) Set the markersvoid
setPolyline
(Polyline polyline) Set the polylinevoid
setVisible
(boolean visible) Updates visibility of all objectsvoid
setVisibleMarkers
(boolean visible) Updates visibility of the shape representing markersvoid
setZIndex
(float zIndex) Set the z indexvoid
update()
Update based upon marker changes
-
Constructor Details
-
PolylineMarkers
Constructor- Parameters:
converter
- shape converter
-
-
Method Details
-
getPolyline
Get the polyline- Returns:
- polyline
-
setPolyline
Set the polyline- Parameters:
polyline
- polyline
-
add
Add a marker- Parameters:
marker
- marker
-
getMarkers
Get all markers- Specified by:
getMarkers
in interfaceShapeMarkers
- Returns:
- markers
-
setMarkers
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 interfaceShapeMarkers
- Parameters:
visible
- visible flag
-
setVisibleMarkers
public void setVisibleMarkers(boolean visible) Updates visibility of the shape representing markers- Specified by:
setVisibleMarkers
in interfaceShapeMarkers
- Parameters:
visible
- visible flag
-
setZIndex
public void setZIndex(float zIndex) Set the z index- Specified by:
setZIndex
in interfaceShapeMarkers
- 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
Delete the marker- Specified by:
delete
in interfaceShapeMarkers
- Parameters:
marker
- marker
-
addNew
Add the marker- Specified by:
addNew
in interfaceShapeMarkers
- Parameters:
marker
- marker
-