Package com.google.maps.android.data
Class Style
- java.lang.Object
-
- java.util.Observable
-
- com.google.maps.android.data.Style
-
- Direct Known Subclasses:
GeoJsonLineStringStyle,GeoJsonPointStyle,GeoJsonPolygonStyle,KmlStyle
public abstract class Style extends java.util.ObservableAn abstraction that shares the common properties ofKmlStyle,GeoJsonPointStyle,GeoJsonLineStringStyleandGeoJsonPolygonStyle
-
-
Constructor Summary
Constructors Constructor Description Style()Creates a new Style object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetRotation()Gets the rotation of a marker in degrees clockwise about the marker's anchorvoidsetLineStringWidth(float width)Sets the width of the LineString in screen pixelsvoidsetMarkerHotSpot(float x, float y, java.lang.String xUnits, java.lang.String yUnits)Sets the hotspot / anchor point of a markervoidsetMarkerRotation(float rotation)Sets the rotation / heading of the Point in degrees clockwise about the marker's anchorvoidsetPolygonFillColor(int fillColor)Sets the fill color of the Polygon as a 32-bit ARGB colorvoidsetPolygonStrokeWidth(float strokeWidth)Sets the stroke width of the Polygon in screen pixels
-
-
-
Method Detail
-
getRotation
public float getRotation()
Gets the rotation of a marker in degrees clockwise about the marker's anchor- Returns:
- rotation of the Point
-
setMarkerRotation
public void setMarkerRotation(float rotation)
Sets the rotation / heading of the Point in degrees clockwise about the marker's anchor- Parameters:
rotation- Decimal representation of the rotation value of the Point
-
setMarkerHotSpot
public void setMarkerHotSpot(float x, float y, java.lang.String xUnits, java.lang.String yUnits)Sets the hotspot / anchor point of a marker- Parameters:
x- x point of a marker positiony- y point of a marker positionxUnits- units in which the x value is specifiedyUnits- units in which the y value is specified
-
setLineStringWidth
public void setLineStringWidth(float width)
Sets the width of the LineString in screen pixels- Parameters:
width- width value of the LineString
-
setPolygonStrokeWidth
public void setPolygonStrokeWidth(float strokeWidth)
Sets the stroke width of the Polygon in screen pixels- Parameters:
strokeWidth- stroke width value of the Polygon
-
setPolygonFillColor
public void setPolygonFillColor(int fillColor)
Sets the fill color of the Polygon as a 32-bit ARGB color- Parameters:
fillColor- fill color value of the Polygon
-
-