Class GeoJsonLineStringStyle
- java.lang.Object
-
- java.util.Observable
-
- com.google.maps.android.data.Style
-
- com.google.maps.android.data.geojson.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 intgetColor()Gets the color of the GeoJsonLineString as a 32-bit ARGB colorjava.lang.String[]getGeometryType()java.util.List<com.google.android.gms.maps.model.PatternItem>getPattern()Gets the pattern of the GeoJsonLineStringfloatgetWidth()Gets the width of the GeoJsonLineString in screen pixelsfloatgetZIndex()Gets the z index of the GeoJsonLineStringbooleanisClickable()Gets the clickability setting for this Options objectbooleanisGeodesic()Gets whether the GeoJsonLineString is geodesicbooleanisVisible()Gets whether the GeoJsonLineString is visiblevoidsetClickable(boolean clickable)Specifies whether this GeoJsonLineString is clickablevoidsetColor(int color)Sets the color of the GeoJsonLineString as a 32-bit ARGB colorvoidsetGeodesic(boolean geodesic)Sets whether the GeoJsonLineString is geodesicvoidsetPattern(java.util.List<com.google.android.gms.maps.model.PatternItem> pattern)Sets the pattern of the GeoJsonLineStringvoidsetVisible(boolean visible)Sets whether the GeoJsonLineString is visiblevoidsetWidth(float width)Sets the width of the GeoJsonLineString in screen pixelsvoidsetZIndex(float zIndex)Sets the z index of the GeoJsonLineStringcom.google.android.gms.maps.model.PolylineOptionstoPolylineOptions()Gets a new PolylineOptions object containing styles for the GeoJsonLineStringjava.lang.StringtoString()-
Methods inherited from class com.google.maps.android.data.Style
getRotation, setLineStringWidth, setMarkerHotSpot, setMarkerRotation, setPolygonFillColor, setPolygonStrokeWidth
-
-
-
-
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:
toStringin classjava.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
-
-