Package 

Class GeoJsonLineStringStyle

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

    
    public class GeoJsonLineStringStyle
    extends Style implements GeoJsonStyle
                        

    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

      Modifier and Type Method Description
      Array<String> getGeometryType() Gets the type of geometries this style can be applied to
      int getColor() Gets the color of the GeoJsonLineString as a 32-bit ARGB color
      void setColor(int color) Sets the color of the GeoJsonLineString as a 32-bit ARGB color
      boolean isClickable() Gets the clickability setting for this Options object
      void setClickable(boolean clickable) Specifies whether this GeoJsonLineString is clickable
      boolean isGeodesic() Gets whether the GeoJsonLineString is geodesic
      void setGeodesic(boolean geodesic) Sets whether the GeoJsonLineString is geodesic
      float getWidth() Gets the width of the GeoJsonLineString in screen pixels
      void setWidth(float width) Sets the width of the GeoJsonLineString in screen pixels
      float getZIndex() Gets the z index of the GeoJsonLineString
      void setZIndex(float zIndex) Sets the z index of the GeoJsonLineString
      boolean isVisible() Gets whether the GeoJsonLineString is visible
      void setVisible(boolean visible) Sets whether the GeoJsonLineString is visible
      PolylineOptions toPolylineOptions() Gets a new PolylineOptions object containing styles for the GeoJsonLineString
      String toString()
      List<PatternItem> getPattern() Gets the pattern of the GeoJsonLineString
      void setPattern(List<PatternItem> pattern) Sets the pattern of the GeoJsonLineString
      • 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

      • GeoJsonLineStringStyle

        GeoJsonLineStringStyle()
        Creates a new LineStringStyle object
    • Method Detail

      • getColor

         int getColor()

        Gets the color of the GeoJsonLineString as a 32-bit ARGB color

      • setColor

         void setColor(int color)

        Sets the color of the GeoJsonLineString as a 32-bit ARGB color

        Parameters:
        color - color value of the GeoJsonLineString
      • isClickable

         boolean isClickable()

        Gets the clickability setting for this Options object

      • setClickable

         void setClickable(boolean clickable)

        Specifies whether this GeoJsonLineString is clickable

        Parameters:
        clickable - - new clickability setting for the GeoJsonLineString
      • isGeodesic

         boolean isGeodesic()

        Gets whether the GeoJsonLineString is geodesic

      • setGeodesic

         void setGeodesic(boolean geodesic)

        Sets whether the GeoJsonLineString is geodesic

        Parameters:
        geodesic - true if GeoJsonLineString is geodesic, false otherwise
      • getWidth

         float getWidth()

        Gets the width of the GeoJsonLineString in screen pixels

      • setWidth

         void setWidth(float width)

        Sets the width of the GeoJsonLineString in screen pixels

        Parameters:
        width - width value of the GeoJsonLineString
      • getZIndex

         float getZIndex()

        Gets the z index of the GeoJsonLineString

      • setZIndex

         void setZIndex(float zIndex)

        Sets the z index of the GeoJsonLineString

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

         boolean isVisible()

        Gets whether the GeoJsonLineString is visible

      • setVisible

         void setVisible(boolean visible)

        Sets whether the GeoJsonLineString is visible

        Parameters:
        visible - true if the GeoJsonLineString is visible, false if not visible
      • toPolylineOptions

         PolylineOptions toPolylineOptions()

        Gets a new PolylineOptions object containing styles for the GeoJsonLineString

      • getPattern

         List<PatternItem> getPattern()

        Gets the pattern of the GeoJsonLineString

      • setPattern

         void setPattern(List<PatternItem> pattern)

        Sets the pattern of the GeoJsonLineString

        Parameters:
        pattern - line style of GeoJsonLineString