-
- 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 intgetColor()Gets the color of the GeoJsonLineString as a 32-bit ARGB color voidsetColor(int color)Sets the color of the GeoJsonLineString as a 32-bit ARGB color booleanisClickable()Gets the clickability setting for this Options object voidsetClickable(boolean clickable)Specifies whether this GeoJsonLineString is clickable booleanisGeodesic()Gets whether the GeoJsonLineString is geodesic voidsetGeodesic(boolean geodesic)Sets whether the GeoJsonLineString is geodesic floatgetWidth()Gets the width of the GeoJsonLineString in screen pixels voidsetWidth(float width)Sets the width of the GeoJsonLineString in screen pixels floatgetZIndex()Gets the z index of the GeoJsonLineString voidsetZIndex(float zIndex)Sets the z index of the GeoJsonLineString booleanisVisible()Gets whether the GeoJsonLineString is visible voidsetVisible(boolean visible)Sets whether the GeoJsonLineString is visible PolylineOptionstoPolylineOptions()Gets a new PolylineOptions object containing styles for the GeoJsonLineString StringtoString()List<PatternItem>getPattern()Gets the pattern of the GeoJsonLineString voidsetPattern(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
-
-
Method Detail
-
getGeometryType
Array<String> getGeometryType()
Gets the type of geometries this style can be applied to
-
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
-
-
-
-