Package mil.nga.geopackage.map.geom
Class GoogleMapShape
- java.lang.Object
-
- mil.nga.geopackage.map.geom.GoogleMapShape
-
public class GoogleMapShape extends Object
Google Map Shape
-
-
Constructor Summary
Constructors Constructor Description GoogleMapShape(GeometryType geometryType, GoogleMapShapeType shapeType, Object shape)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundingBoxboundingBox()Get a bounding box that includes the shapevoidexpandBoundingBox(BoundingBox boundingBox)Expand the bounding box to include the shapeGeometryTypegetGeometryType()Get the geometry typeObjectgetShape()Get the shapeGoogleMapShapeTypegetShapeType()Get the shape typebooleanisValid()Determines if the shape is in a valid statevoidremove()Removes all objects added to the mapvoidsetGeometryType(GeometryType geometryType)Set the geometry typevoidsetShape(Object shape)Set 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 Detail
-
GoogleMapShape
public GoogleMapShape(GeometryType geometryType, GoogleMapShapeType shapeType, Object shape)
Constructor- Parameters:
geometryType- geometry typeshapeType- shape typeshape- shape
-
-
Method Detail
-
getGeometryType
public GeometryType getGeometryType()
Get the geometry type- Returns:
- geometry type
-
setGeometryType
public void setGeometryType(GeometryType geometryType)
Set the geometry type- Parameters:
geometryType- geometry type
-
getShapeType
public GoogleMapShapeType getShapeType()
Get the shape type- Returns:
- shape type
-
setShapeType
public void setShapeType(GoogleMapShapeType shapeType)
Set the shape type- Parameters:
shapeType- shape type
-
getShape
public Object getShape()
Get the shape- Returns:
- shape
-
setShape
public void setShape(Object shape)
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
public BoundingBox boundingBox()
Get a bounding box that includes the shape- Returns:
- bounding box
-
expandBoundingBox
public void expandBoundingBox(BoundingBox boundingBox)
Expand the bounding box to include the shape- Parameters:
boundingBox- bounding box
-
-