Class GoogleMapShape


  • public class GoogleMapShape
    extends Object
    Google Map Shape
    • Constructor Detail

      • GoogleMapShape

        public GoogleMapShape​(GeometryType geometryType,
                              GoogleMapShapeType shapeType,
                              Object shape)
        Constructor
        Parameters:
        geometryType - geometry type
        shapeType - shape type
        shape - 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