Class FeatureShape


  • public class FeatureShape
    extends Object
    Map shapes and metadata shapes for a single feature shape
    Since:
    3.2.0
    • Constructor Detail

      • FeatureShape

        public FeatureShape​(long featureId)
        Constructor
        Parameters:
        featureId - feature id
    • Method Detail

      • getFeatureId

        public long getFeatureId()
        Get feature id
        Returns:
        feature id
      • getShapes

        public List<GoogleMapShape> getShapes()
        Get the map shapes
        Returns:
        map shapes
      • getMetadataShapes

        public List<GoogleMapShape> getMetadataShapes()
        Get the map metadata shapes
        Returns:
        map metadata shapes
      • addShape

        public void addShape​(GoogleMapShape shape)
        Add a map shape
        Parameters:
        shape - map shape
      • addMetadataShape

        public void addMetadataShape​(GoogleMapShape shape)
        Add a metadata map shape
        Parameters:
        shape - metadata map shape
      • count

        public int count()
        Get the count of map shapes
        Returns:
        map shapes count
      • hasShapes

        public boolean hasShapes()
        Determine if there are map shapes
        Returns:
        true if has map shapes
      • countMetadataShapes

        public int countMetadataShapes()
        Get the count of map metadata shapes
        Returns:
        map metadata shapes count
      • hasMetadataShapes

        public boolean hasMetadataShapes()
        Determine if there are map metadata shapes
        Returns:
        true if has map metadata shapes
      • remove

        public void remove()
        Remove all map shapes and metadata map shapes from the map and feature shape
      • removeShapes

        public void removeShapes()
        Remove the map shapes from the map and feature shape
      • removeMetadataShapes

        public void removeMetadataShapes()
        Remove the map metadata shapes from the map and feature shape