-
- All Implemented Interfaces:
-
com.google.maps.android.data.geojson.GeoJsonStyle
public class GeoJsonPolygonStyle extends Style implements GeoJsonStyle
A class that allows for GeoJsonPolygon objects to be styled and for these styles to be translated into a PolygonOptions object. {@see * * PolygonOptions docs for more details about the options.}
-
-
Constructor Summary
Constructors Constructor Description GeoJsonPolygonStyle()Creates a new PolygonStyle object
-
Method Summary
Modifier and Type Method Description Array<String>getGeometryType()Gets the type of geometries this style can be applied to intgetFillColor()Gets the fill color of the GeoJsonPolygon as a 32-bit ARGB color voidsetFillColor(int fillColor)Sets the fill color of the GeoJsonPolygon as a 32-bit ARGB color booleanisGeodesic()Gets whether the GeoJsonPolygon is geodesic voidsetGeodesic(boolean geodesic)Sets whether the GeoJsonPolygon is geodesic intgetStrokeColor()Gets the stroke color of the GeoJsonPolygon as a 32-bit ARGB color voidsetStrokeColor(int strokeColor)Sets the stroke color of the GeoJsonPolygon as a 32-bit ARGB color intgetStrokeJointType()Gets the stroke joint type of the GeoJsonPolygon voidsetStrokeJointType(int strokeJointType)Sets the stroke joint type of the GeoJsonPolygon List<PatternItem>getStrokePattern()Gets the stroke pattern of the GeoJsonPolygon as a list of pattern items voidsetStrokePattern(List<PatternItem> strokePattern)Sets the stroke pattern of the GeoJsonPolygon as a list of pattern items floatgetStrokeWidth()Gets the stroke width of the GeoJsonPolygon in screen pixels voidsetStrokeWidth(float strokeWidth)Sets the stroke width of the GeoJsonPolygon in screen pixels floatgetZIndex()Gets the z index of the GeoJsonPolygon voidsetZIndex(float zIndex)Sets the z index of the GeoJsonPolygon booleanisVisible()Gets whether the GeoJsonPolygon is visible voidsetVisible(boolean visible)Sets whether the GeoJsonPolygon is visible PolygonOptionstoPolygonOptions()Gets a new PolygonOptions object containing styles for the GeoJsonPolygon StringtoString()voidsetClickable(boolean clickable)Specifies whether this GeoJsonPolygon is clickable booleanisClickable()Gets the clickability setting for this Options object -
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
-
getFillColor
int getFillColor()
Gets the fill color of the GeoJsonPolygon as a 32-bit ARGB color
-
setFillColor
void setFillColor(int fillColor)
Sets the fill color of the GeoJsonPolygon as a 32-bit ARGB color
- Parameters:
fillColor- fill color value of the GeoJsonPolygon
-
isGeodesic
boolean isGeodesic()
Gets whether the GeoJsonPolygon is geodesic
-
setGeodesic
void setGeodesic(boolean geodesic)
Sets whether the GeoJsonPolygon is geodesic
- Parameters:
geodesic- true if GeoJsonPolygon is geodesic, false if not geodesic
-
getStrokeColor
int getStrokeColor()
Gets the stroke color of the GeoJsonPolygon as a 32-bit ARGB color
-
setStrokeColor
void setStrokeColor(int strokeColor)
Sets the stroke color of the GeoJsonPolygon as a 32-bit ARGB color
- Parameters:
strokeColor- stroke color value of the GeoJsonPolygon
-
getStrokeJointType
int getStrokeJointType()
Gets the stroke joint type of the GeoJsonPolygon
-
setStrokeJointType
void setStrokeJointType(int strokeJointType)
Sets the stroke joint type of the GeoJsonPolygon
- Parameters:
strokeJointType- stroke joint type value of the GeoJsonPolygon
-
getStrokePattern
List<PatternItem> getStrokePattern()
Gets the stroke pattern of the GeoJsonPolygon as a list of pattern items
-
setStrokePattern
void setStrokePattern(List<PatternItem> strokePattern)
Sets the stroke pattern of the GeoJsonPolygon as a list of pattern items
- Parameters:
strokePattern- stroke pattern value of the GeoJsonPolygon
-
getStrokeWidth
float getStrokeWidth()
Gets the stroke width of the GeoJsonPolygon in screen pixels
-
setStrokeWidth
void setStrokeWidth(float strokeWidth)
Sets the stroke width of the GeoJsonPolygon in screen pixels
- Parameters:
strokeWidth- stroke width value of the GeoJsonPolygon
-
getZIndex
float getZIndex()
Gets the z index of the GeoJsonPolygon
-
setZIndex
void setZIndex(float zIndex)
Sets the z index of the GeoJsonPolygon
- Parameters:
zIndex- z index value of the GeoJsonPolygon
-
isVisible
boolean isVisible()
Gets whether the GeoJsonPolygon is visible
-
setVisible
void setVisible(boolean visible)
Sets whether the GeoJsonPolygon is visible
- Parameters:
visible- true if GeoJsonPolygon is visible, false if not visible
-
toPolygonOptions
PolygonOptions toPolygonOptions()
Gets a new PolygonOptions object containing styles for the GeoJsonPolygon
-
setClickable
void setClickable(boolean clickable)
Specifies whether this GeoJsonPolygon is clickable
- Parameters:
clickable- - new clickability setting for the GeoJsonPolygon
-
isClickable
boolean isClickable()
Gets the clickability setting for this Options object
-
-
-
-