Class LineStyle

  • All Implemented Interfaces:
    com.google.maps.android.data.renderer.model.Style

    
    public final class LineStyle
     implements Style
                        

    A data class representing the style for a LineString.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getColor() The color of the line, as an integer (e.g., ARGB) or hex string.
      final Float getWidth() The width of the line in pixels.
      final Boolean getGeodesic() Indicates whether the line should be drawn as a geodesic (true) or a straight line (false).
      final Float getZIndex() The z-index of the line.
      final Boolean getClickable() Indicates whether the line is clickable.
      final Boolean getVisible() Indicates whether the line is visible.
      • Methods inherited from class java.lang.Object

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

      • getColor

         final Integer getColor()

        The color of the line, as an integer (e.g., ARGB) or hex string. Defaults to black.

      • getWidth

         final Float getWidth()

        The width of the line in pixels. Defaults to 1.0.

      • getGeodesic

         final Boolean getGeodesic()

        Indicates whether the line should be drawn as a geodesic (true) or a straight line (false). Defaults to false.

      • getZIndex

         final Float getZIndex()

        The z-index of the line. Higher values are drawn above lower values. Defaults to 0.0.

      • getClickable

         final Boolean getClickable()

        Indicates whether the line is clickable. Defaults to true.

      • getVisible

         final Boolean getVisible()

        Indicates whether the line is visible. Defaults to true.