-
public abstract class Style extends Observable
An abstraction that shares the common properties of KmlStyle, GeoJsonPointStyle, GeoJsonLineStringStyle and GeoJsonPolygonStyle
-
-
Constructor Summary
Constructors Constructor Description Style()Creates a new Style object
-
Method Summary
Modifier and Type Method Description floatgetRotation()Gets the rotation of a marker in degrees clockwise about the marker's anchor voidsetMarkerRotation(float rotation)Sets the rotation / heading of the Point in degrees clockwise about the marker's anchor voidsetMarkerHotSpot(float x, float y, String xUnits, String yUnits)Sets the hotspot / anchor point of a marker voidsetLineStringWidth(float width)Sets the width of the LineString in screen pixels voidsetPolygonStrokeWidth(float strokeWidth)Sets the stroke width of the Polygon in screen pixels voidsetPolygonFillColor(int fillColor)Sets the fill color of the Polygon as a 32-bit ARGB color -
-
Method Detail
-
getRotation
float getRotation()
Gets the rotation of a marker in degrees clockwise about the marker's anchor
-
setMarkerRotation
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
void setMarkerHotSpot(float x, float y, String xUnits, 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
void setLineStringWidth(float width)
Sets the width of the LineString in screen pixels
- Parameters:
width- width value of the LineString
-
setPolygonStrokeWidth
void setPolygonStrokeWidth(float strokeWidth)
Sets the stroke width of the Polygon in screen pixels
- Parameters:
strokeWidth- stroke width value of the Polygon
-
setPolygonFillColor
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
-
-
-
-