public class OverlayMarkerOptions
extends java.lang.Object
implements java.io.Serializable
A serializable options object for use with OverlayMarker
Contains all of the values that control how a OverlayMarker will be drawn
Modifier and Type | Class and Description |
---|---|
static class |
OverlayMarkerOptions.OverlayMarkerCoordinateType |
Constructor and Description |
---|
OverlayMarkerOptions(int overlayType,
float x,
float y,
OverlayMarkerOptions.OverlayMarkerCoordinateType coordinateType,
float[] points) |
OverlayMarkerOptions(OverlayMarkerOptions source) |
Modifier and Type | Method and Description |
---|---|
static OverlayMarkerOptions |
fromCircle(float x,
float y,
float radius)
Construct an OverlayMarker for a circle
|
static OverlayMarkerOptions |
fromPlacemark(Placemark placemark)
Construct an OverlayMarker using data from a placemark
|
MapInfo.ZoomLevel |
getMaxZoomLevel() |
MapInfo.ZoomLevel |
getMinZoomLevel() |
int |
getOverlayColor()
Overlay Stroke Color (ARGB)
|
int |
getOverlayFillColor()
Overlay Fill Color (ARGB)
|
int |
getOverlayType()
Type for OverlayMarker
|
float |
getOverlayWidth()
Stroke width for the OverlayMarker
|
Placemark |
getPlacemark()
The placemark that was used to initialize the OverlayMarkerOptions
|
float[] |
getPoints()
Return an array of 2D point data.
|
float |
getX() |
float |
getY() |
void |
setOverlayColor(int newOverlayColor)
Set Overlay Stoke Color (ARGB)
|
void |
setOverlayFillColor(int newOverlayFillColor)
Set Overlay Fill Color (ARGB)
|
void |
setOverlayType(int type)
Type for the OverlayMarker
|
void |
setOverlayWidth(float width)
Set the stroke width for the OverlayMarker
|
void |
setPoints(float[] points,
OverlayMarkerOptions.OverlayMarkerCoordinateType type)
Set the point data: The first value in the points array is the number of points in the array.
|
void |
setX(float newX) |
void |
setY(float newY) |
void |
updateFromPlacemark(Placemark placemark)
Update OverlayMarker with the current point data from a placemark
|
public OverlayMarkerOptions(int overlayType, float x, float y, OverlayMarkerOptions.OverlayMarkerCoordinateType coordinateType, float[] points)
public OverlayMarkerOptions(OverlayMarkerOptions source)
public static OverlayMarkerOptions fromPlacemark(Placemark placemark)
Construct an OverlayMarker using data from a placemark
placemark
- The placemark containing the point datapublic static OverlayMarkerOptions fromCircle(float x, float y, float radius)
Construct an OverlayMarker for a circle
x
- Center of circle X coordinatey
- Center of circle Y coordinateradius
- Radius of circlepublic void updateFromPlacemark(Placemark placemark)
Update OverlayMarker with the current point data from a placemark
placemark
- The placemarkpublic Placemark getPlacemark()
The placemark that was used to initialize the OverlayMarkerOptions
public int getOverlayType()
Type for OverlayMarker
TextureProvider.OverlayType
public void setOverlayType(int type)
Type for the OverlayMarker
type
- TextureProvider.OverlayType
public float getOverlayWidth()
Stroke width for the OverlayMarker
public void setOverlayWidth(float width)
Set the stroke width for the OverlayMarker
public int getOverlayColor()
Overlay Stroke Color (ARGB)
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
public int getOverlayFillColor()
Overlay Fill Color (ARGB)
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
public float getX()
public float getY()
public void setX(float newX)
public void setY(float newY)
public MapInfo.ZoomLevel getMinZoomLevel()
public MapInfo.ZoomLevel getMaxZoomLevel()
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.
public void setPoints(float[] points, OverlayMarkerOptions.OverlayMarkerCoordinateType type)
Set the point data: The first value in the points array is the number of points in the array.
points
- Array of point data [num, x1, y1, x2, y2, …]type
- The OverlayMarkerCoordinateType of the incoming points