Package mil.nga.geopackage.map.geom
Class GoogleMapShape
java.lang.Object
mil.nga.geopackage.map.geom.GoogleMapShape
Google Map Shape
-
Constructor Summary
ConstructorDescriptionGoogleMapShape
(GeometryType geometryType, GoogleMapShapeType shapeType, Object shape) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet a bounding box that includes the shapevoid
expandBoundingBox
(BoundingBox boundingBox) Expand the bounding box to include the shapeGet the geometry typegetShape()
Get the shapeGet the shape typeboolean
isValid()
Determines if the shape is in a valid statevoid
remove()
Removes all objects added to the mapvoid
setGeometryType
(GeometryType geometryType) Set the geometry typevoid
Set the shapevoid
setShapeType
(GoogleMapShapeType shapeType) Set the shape typevoid
setVisible
(boolean visible) Updates visibility of all objectsvoid
setZIndex
(float zIndex) Set the z indexvoid
update()
Updates all objects that could have changed from moved markers
-
Constructor Details
-
GoogleMapShape
Constructor- Parameters:
geometryType
- geometry typeshapeType
- shape typeshape
- shape
-
-
Method Details
-
getGeometryType
Get the geometry type- Returns:
- geometry type
-
setGeometryType
Set the geometry type- Parameters:
geometryType
- geometry type
-
getShapeType
Get the shape type- Returns:
- shape type
-
setShapeType
Set the shape type- Parameters:
shapeType
- shape type
-
getShape
Get the shape- Returns:
- shape
-
setShape
Set the shape- Parameters:
shape
- shape
-
remove
public void remove()Removes all objects added to the map -
setVisible
public void setVisible(boolean visible) Updates visibility of all objects- Parameters:
visible
- visible flag- Since:
- 1.3.2
-
setZIndex
public void setZIndex(float zIndex) Set the z index- Parameters:
zIndex
- z index- Since:
- 2.0.1
-
update
public void update()Updates all objects that could have changed from moved markers -
isValid
public boolean isValid()Determines if the shape is in a valid state- Returns:
- true if valid
-
boundingBox
Get a bounding box that includes the shape- Returns:
- bounding box
-
expandBoundingBox
Expand the bounding box to include the shape- Parameters:
boundingBox
- bounding box
-