Package com.arubanetworks.meridian.maps
Class OverlayMarkerOptions
java.lang.Object
com.arubanetworks.meridian.maps.OverlayMarkerOptions
- All Implemented Interfaces:
Serializable
A serializable options object for use with
OverlayMarker
Contains all of the values that control how a OverlayMarker will be drawn
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOverlayMarkerOptions(int overlayType, float x, float y, OverlayMarkerOptions.OverlayMarkerCoordinateType coordinateType, float[] points) -
Method Summary
Modifier and TypeMethodDescriptionstatic OverlayMarkerOptionsfromCircle(float x, float y, float radius) Construct an OverlayMarker for a circlestatic OverlayMarkerOptionsfromPlacemark(Placemark placemark) Construct an OverlayMarker using data from a placemarkintOverlay Stroke Color (ARGB)intOverlay Fill Color (ARGB)intType for OverlayMarkerfloatStroke width for the OverlayMarkerThe placemark that was used to initialize the OverlayMarkerOptionsfloat[]Return an array of 2D point data.floatgetX()floatgetY()voidsetOverlayColor(int newOverlayColor) Set Overlay Stoke Color (ARGB)Hint: Color.parseColor() can be used to convert an ARGB string color to an int
voidsetOverlayFillColor(int newOverlayFillColor) Set Overlay Fill Color (ARGB)Hint: Color.parseColor() can be used to convert an ARGB string color to an int
voidsetOverlayType(int type) Type for the OverlayMarkervoidsetOverlayWidth(float width) Set the stroke width for the OverlayMarkervoidsetPoints(float[] points, OverlayMarkerOptions.OverlayMarkerCoordinateType type) Set the point data: The first value in the points array is the number of points in the array.voidsetX(float newX) voidsetY(float newY) voidupdateFromPlacemark(Placemark placemark) Update OverlayMarker with the current point data from a placemark
-
Constructor Details
-
OverlayMarkerOptions
public OverlayMarkerOptions(int overlayType, float x, float y, OverlayMarkerOptions.OverlayMarkerCoordinateType coordinateType, float[] points) -
OverlayMarkerOptions
-
-
Method Details
-
fromPlacemark
Construct an OverlayMarker using data from a placemark- Parameters:
placemark- The placemark containing the point data
-
fromCircle
Construct an OverlayMarker for a circle- Parameters:
x- Center of circle X coordinatey- Center of circle Y coordinateradius- Radius of circle
-
updateFromPlacemark
Update OverlayMarker with the current point data from a placemark- Parameters:
placemark- The placemark
-
getPlacemark
The placemark that was used to initialize the OverlayMarkerOptions -
getOverlayType
public int getOverlayType()Type for OverlayMarker- Returns:
TextureProvider.OverlayType
-
setOverlayType
public void setOverlayType(int type) Type for the OverlayMarker- Parameters:
type-TextureProvider.OverlayType
-
getOverlayWidth
public float getOverlayWidth()Stroke width for the OverlayMarker -
setOverlayWidth
public void setOverlayWidth(float width) Set the stroke width for the OverlayMarker -
getOverlayColor
public int getOverlayColor()Overlay Stroke Color (ARGB) -
setOverlayColor
public void setOverlayColor(int newOverlayColor) Set Overlay Stoke Color (ARGB)Hint: Color.parseColor() can be used to convert an ARGB string color to an int
-
getOverlayFillColor
public int getOverlayFillColor()Overlay Fill Color (ARGB) -
setOverlayFillColor
public void setOverlayFillColor(int newOverlayFillColor) Set Overlay Fill Color (ARGB)Hint: Color.parseColor() can be used to convert an ARGB string color to an int
-
getX
public float getX() -
getY
public float getY() -
setX
public void setX(float newX) -
setY
public void setY(float newY) -
getMinZoomLevel
-
getMaxZoomLevel
-
getPoints
public float[] getPoints()Return an array of 2D point data.The first value in the points array is the number of points in the array. Point values are OverlayMarkerCoordinateType.ABSOLUTE map coordinates.
- Returns:
- Array of point data [num, x1, y1, x2, y2,…]
-
setPoints
Set the point data: The first value in the points array is the number of points in the array.- Parameters:
points- Array of point data [num, x1, y1, x2, y2, …]type- The OverlayMarkerCoordinateType of the incoming points
-