Package 

Class GeoJsonPolygonStyle

  • All Implemented Interfaces:
    com.google.maps.android.data.geojson.GeoJsonStyle

    
    public class GeoJsonPolygonStyle
    extends Style implements GeoJsonStyle
                        

    A class that allows for GeoJsonPolygon objects to be styled and for these styles to be translated into a PolygonOptions object. {@see * * PolygonOptions docs for more details about the options.}

    • Constructor Summary

      Constructors 
      Constructor Description
      GeoJsonPolygonStyle() Creates a new PolygonStyle object
    • Method Summary

      Modifier and Type Method Description
      Array<String> getGeometryType() Gets the type of geometries this style can be applied to
      int getFillColor() Gets the fill color of the GeoJsonPolygon as a 32-bit ARGB color
      void setFillColor(int fillColor) Sets the fill color of the GeoJsonPolygon as a 32-bit ARGB color
      boolean isGeodesic() Gets whether the GeoJsonPolygon is geodesic
      void setGeodesic(boolean geodesic) Sets whether the GeoJsonPolygon is geodesic
      int getStrokeColor() Gets the stroke color of the GeoJsonPolygon as a 32-bit ARGB color
      void setStrokeColor(int strokeColor) Sets the stroke color of the GeoJsonPolygon as a 32-bit ARGB color
      int getStrokeJointType() Gets the stroke joint type of the GeoJsonPolygon
      void setStrokeJointType(int strokeJointType) Sets the stroke joint type of the GeoJsonPolygon
      List<PatternItem> getStrokePattern() Gets the stroke pattern of the GeoJsonPolygon as a list of pattern items
      void setStrokePattern(List<PatternItem> strokePattern) Sets the stroke pattern of the GeoJsonPolygon as a list of pattern items
      float getStrokeWidth() Gets the stroke width of the GeoJsonPolygon in screen pixels
      void setStrokeWidth(float strokeWidth) Sets the stroke width of the GeoJsonPolygon in screen pixels
      float getZIndex() Gets the z index of the GeoJsonPolygon
      void setZIndex(float zIndex) Sets the z index of the GeoJsonPolygon
      boolean isVisible() Gets whether the GeoJsonPolygon is visible
      void setVisible(boolean visible) Sets whether the GeoJsonPolygon is visible
      PolygonOptions toPolygonOptions() Gets a new PolygonOptions object containing styles for the GeoJsonPolygon
      String toString()
      void setClickable(boolean clickable) Specifies whether this GeoJsonPolygon is clickable
      boolean isClickable() Gets the clickability setting for this Options object
      • Methods inherited from class com.google.maps.android.data.Style

        getRotation, setLineStringWidth, setMarkerHotSpot, setMarkerRotation, setPolygonFillColor, setPolygonStrokeWidth
      • Methods inherited from class java.util.Observable

        addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeoJsonPolygonStyle

        GeoJsonPolygonStyle()
        Creates a new PolygonStyle object
    • Method Detail

      • getFillColor

         int getFillColor()

        Gets the fill color of the GeoJsonPolygon as a 32-bit ARGB color

      • setFillColor

         void setFillColor(int fillColor)

        Sets the fill color of the GeoJsonPolygon as a 32-bit ARGB color

        Parameters:
        fillColor - fill color value of the GeoJsonPolygon
      • isGeodesic

         boolean isGeodesic()

        Gets whether the GeoJsonPolygon is geodesic

      • setGeodesic

         void setGeodesic(boolean geodesic)

        Sets whether the GeoJsonPolygon is geodesic

        Parameters:
        geodesic - true if GeoJsonPolygon is geodesic, false if not geodesic
      • getStrokeColor

         int getStrokeColor()

        Gets the stroke color of the GeoJsonPolygon as a 32-bit ARGB color

      • setStrokeColor

         void setStrokeColor(int strokeColor)

        Sets the stroke color of the GeoJsonPolygon as a 32-bit ARGB color

        Parameters:
        strokeColor - stroke color value of the GeoJsonPolygon
      • getStrokeJointType

         int getStrokeJointType()

        Gets the stroke joint type of the GeoJsonPolygon

      • setStrokeJointType

         void setStrokeJointType(int strokeJointType)

        Sets the stroke joint type of the GeoJsonPolygon

        Parameters:
        strokeJointType - stroke joint type value of the GeoJsonPolygon
      • getStrokePattern

         List<PatternItem> getStrokePattern()

        Gets the stroke pattern of the GeoJsonPolygon as a list of pattern items

      • setStrokePattern

         void setStrokePattern(List<PatternItem> strokePattern)

        Sets the stroke pattern of the GeoJsonPolygon as a list of pattern items

        Parameters:
        strokePattern - stroke pattern value of the GeoJsonPolygon
      • getStrokeWidth

         float getStrokeWidth()

        Gets the stroke width of the GeoJsonPolygon in screen pixels

      • setStrokeWidth

         void setStrokeWidth(float strokeWidth)

        Sets the stroke width of the GeoJsonPolygon in screen pixels

        Parameters:
        strokeWidth - stroke width value of the GeoJsonPolygon
      • getZIndex

         float getZIndex()

        Gets the z index of the GeoJsonPolygon

      • setZIndex

         void setZIndex(float zIndex)

        Sets the z index of the GeoJsonPolygon

        Parameters:
        zIndex - z index value of the GeoJsonPolygon
      • isVisible

         boolean isVisible()

        Gets whether the GeoJsonPolygon is visible

      • setVisible

         void setVisible(boolean visible)

        Sets whether the GeoJsonPolygon is visible

        Parameters:
        visible - true if GeoJsonPolygon is visible, false if not visible
      • toPolygonOptions

         PolygonOptions toPolygonOptions()

        Gets a new PolygonOptions object containing styles for the GeoJsonPolygon

      • setClickable

         void setClickable(boolean clickable)

        Specifies whether this GeoJsonPolygon is clickable

        Parameters:
        clickable - - new clickability setting for the GeoJsonPolygon
      • isClickable

         boolean isClickable()

        Gets the clickability setting for this Options object