Package mil.nga.geopackage.map.geom
Class GoogleMapShape
java.lang.Object
mil.nga.geopackage.map.geom.GoogleMapShape
Google Map Shape
-
Constructor Summary
ConstructorsConstructorDescriptionGoogleMapShape(GeometryType geometryType, GoogleMapShapeType shapeType, Object shape) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet a bounding box that includes the shapevoidexpandBoundingBox(BoundingBox boundingBox) Expand the bounding box to include the shapeGet the geometry typegetShape()Get the shapeGet the shape typebooleanisValid()Determines if the shape is in a valid statevoidremove()Removes all objects added to the mapvoidsetGeometryType(GeometryType geometryType) Set the geometry typevoidSet the shapevoidsetShapeType(GoogleMapShapeType shapeType) Set the shape typevoidsetVisible(boolean visible) Updates visibility of all objectsvoidsetZIndex(float zIndex) Set the z indexvoidupdate()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
-