Package mil.nga.geopackage.map.geom
Class PolygonMarkers
java.lang.Object
mil.nga.geopackage.map.geom.PolygonMarkers
- All Implemented Interfaces:
ShapeMarkers
,ShapeWithChildrenMarkers
Polygon with Markers object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a markervoid
addHole
(PolygonHoleMarkers hole) Add a polygon holevoid
Add the markerCreate a child shapevoid
Delete the markergetHoles()
Get the polygon holesGet all markersGet the polygonboolean
Is it deletedboolean
isValid()
Is it validvoid
remove()
Remove from the mapvoid
setHoles
(List<PolygonHoleMarkers> holes) Set the polygon holesvoid
setMarkers
(List<Marker> markers) Set the markersvoid
setPolygon
(Polygon polygon) Set the polygonvoid
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
-
PolygonMarkers
Constructor- Parameters:
converter
- shape converter
-
-
Method Details
-
getPolygon
Get the polygon- Returns:
- polygon
-
setPolygon
Set the polygon- Parameters:
polygon
- polygon
-
add
Add a marker- Parameters:
marker
- marker
-
getMarkers
Get all markers- Specified by:
getMarkers
in interfaceShapeMarkers
- Returns:
- markers
-
setMarkers
Set the markers- Parameters:
markers
- markers
-
addHole
Add a polygon hole- Parameters:
hole
- polygon hole markers
-
getHoles
Get the polygon holes- Returns:
- list of polygon hole markers
-
setHoles
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 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
-
createChild
Create a child shape- Specified by:
createChild
in interfaceShapeWithChildrenMarkers
- Returns:
- shape markers
-