Class GeoJsonLineStringStyle


  • public class GeoJsonLineStringStyle
    extends Style
    A class that allows for GeoJsonLineString objects to be styled and for these styles to be translated into a PolylineOptions object. {@see PolylineOptions docs for more details about the options.}
    • Constructor Summary

      Constructors 
      Constructor Description
      GeoJsonLineStringStyle()
      Creates a new LineStringStyle object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getColor()
      Gets the color of the GeoJsonLineString as a 32-bit ARGB color
      java.lang.String[] getGeometryType()
      java.util.List<com.google.android.gms.maps.model.PatternItem> getPattern()
      Gets the pattern of the GeoJsonLineString
      float getWidth()
      Gets the width of the GeoJsonLineString in screen pixels
      float getZIndex()
      Gets the z index of the GeoJsonLineString
      boolean isClickable()
      Gets the clickability setting for this Options object
      boolean isGeodesic()
      Gets whether the GeoJsonLineString is geodesic
      boolean isVisible()
      Gets whether the GeoJsonLineString is visible
      void setClickable​(boolean clickable)
      Specifies whether this GeoJsonLineString is clickable
      void setColor​(int color)
      Sets the color of the GeoJsonLineString as a 32-bit ARGB color
      void setGeodesic​(boolean geodesic)
      Sets whether the GeoJsonLineString is geodesic
      void setPattern​(java.util.List<com.google.android.gms.maps.model.PatternItem> pattern)
      Sets the pattern of the GeoJsonLineString
      void setVisible​(boolean visible)
      Sets whether the GeoJsonLineString is visible
      void setWidth​(float width)
      Sets the width of the GeoJsonLineString in screen pixels
      void setZIndex​(float zIndex)
      Sets the z index of the GeoJsonLineString
      com.google.android.gms.maps.model.PolylineOptions toPolylineOptions()
      Gets a new PolylineOptions object containing styles for the GeoJsonLineString
      java.lang.String toString()  
      • Methods inherited from class java.util.Observable

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

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GeoJsonLineStringStyle

        public GeoJsonLineStringStyle()
        Creates a new LineStringStyle object
    • Method Detail

      • getGeometryType

        public java.lang.String[] getGeometryType()
      • getColor

        public int getColor()
        Gets the color of the GeoJsonLineString as a 32-bit ARGB color
        Returns:
        color of the GeoJsonLineString
      • setColor

        public void setColor​(int color)
        Sets the color of the GeoJsonLineString as a 32-bit ARGB color
        Parameters:
        color - color value of the GeoJsonLineString
      • isClickable

        public boolean isClickable()
        Gets the clickability setting for this Options object
        Returns:
        true if the GeoJsonLineString is clickable; false if it is not
      • setClickable

        public void setClickable​(boolean clickable)
        Specifies whether this GeoJsonLineString is clickable
        Parameters:
        clickable - - new clickability setting for the GeoJsonLineString
      • isGeodesic

        public boolean isGeodesic()
        Gets whether the GeoJsonLineString is geodesic
        Returns:
        true if GeoJsonLineString is geodesic, false otherwise
      • setGeodesic

        public void setGeodesic​(boolean geodesic)
        Sets whether the GeoJsonLineString is geodesic
        Parameters:
        geodesic - true if GeoJsonLineString is geodesic, false otherwise
      • getWidth

        public float getWidth()
        Gets the width of the GeoJsonLineString in screen pixels
        Returns:
        width of the GeoJsonLineString
      • setWidth

        public void setWidth​(float width)
        Sets the width of the GeoJsonLineString in screen pixels
        Parameters:
        width - width value of the GeoJsonLineString
      • getZIndex

        public float getZIndex()
        Gets the z index of the GeoJsonLineString
        Returns:
        z index of the GeoJsonLineString
      • setZIndex

        public void setZIndex​(float zIndex)
        Sets the z index of the GeoJsonLineString
        Parameters:
        zIndex - z index value of the GeoJsonLineString
      • isVisible

        public boolean isVisible()
        Gets whether the GeoJsonLineString is visible
        Returns:
        true if the GeoJsonLineString visible, false if not visible
      • setVisible

        public void setVisible​(boolean visible)
        Sets whether the GeoJsonLineString is visible
        Parameters:
        visible - true if the GeoJsonLineString is visible, false if not visible
      • toPolylineOptions

        public com.google.android.gms.maps.model.PolylineOptions toPolylineOptions()
        Gets a new PolylineOptions object containing styles for the GeoJsonLineString
        Returns:
        new PolylineOptions object
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getPattern

        public java.util.List<com.google.android.gms.maps.model.PatternItem> getPattern()
        Gets the pattern of the GeoJsonLineString
        Returns:
        line style of GeoJsonLineString
      • setPattern

        public void setPattern​(java.util.List<com.google.android.gms.maps.model.PatternItem> pattern)
        Sets the pattern of the GeoJsonLineString
        Parameters:
        pattern - line style of GeoJsonLineString