public class AngleOverlayShape extends AutoSizeAngleOverlayShape implements Exportable
AutoSizeAngleOverlayShape.OnPropertyChangedListener
Shape.OnBasicLineStyleChangedListener, Shape.OnFillColorChangedListener, Shape.OnPointsChangedListener, Shape.OnStrokeColorChangedListener, Shape.OnStrokeWeightChangedListener, Shape.OnStyleChangedListener
MapItem.OnAltitudeModeChangedListener, MapItem.OnClickableChangedListener, MapItem.OnGroupChangedListener, MapItem.OnHeightChangedListener, MapItem.OnMetadataChangedListener, MapItem.OnTypeChangedListener, MapItem.OnVisibleChangedListener, MapItem.OnZOrderChangedListener
_azimuth, center, offset
BASIC_LINE_STYLE_DASHED, BASIC_LINE_STYLE_DOTTED, BASIC_LINE_STYLE_OUTLINED, BASIC_LINE_STYLE_SOLID, STYLE_FILLED_MASK, STYLE_STROKE_MASK
CLICKABLE_DEFAULT, EDITABLE_DEFAULT, EMPTY_TYPE, HIT_RATIO_DEFAULT, MOVABLE_DEFAULT, VISIBLE_DEFAULT, ZORDER_DEFAULT, ZORDER_HITTEST_COMPARATOR, ZORDER_RENDER_COMPARATOR
metadata
Constructor and Description |
---|
AngleOverlayShape(long serialId,
MetaDataHolder metadata,
java.lang.String uid) |
AngleOverlayShape(java.lang.String uid) |
Modifier and Type | Method and Description |
---|---|
void |
drawCanvas(CapturePP cap,
android.os.Bundle data)
Draw the item to the canvas
|
java.lang.String |
getFormattedRadius() |
GeoPoint[] |
getInnerArrowPoints() |
GeoPointMetaData[] |
getMetaDataPoints()
The array of points that make up the shape with the corresponding metadata.
|
GeoPoint[] |
getPoints()
The array of points without any metadata
|
double |
getRadius() |
Span |
getRadiusUnits() |
int |
getStrokeColor()
Get the strokeColor property value
|
boolean |
isSupported(java.lang.Class<?> target)
Check if this instance supports the specified target class type
|
android.os.Bundle |
preDrawCanvas(CapturePP cap)
Save forwarded points to meta data holder
These will be used later in drawCanvas
|
void |
setCenter(GeoPointMetaData gp) |
void |
setRadius(double radius) |
void |
setRadius(double radius,
Span units) |
void |
setSimpleSpokeView(boolean simpleSpokeView) |
void |
setTitle(java.lang.String title)
Set the title of this map item (display name)
|
boolean |
showSimpleSpokeView() |
protected Folder |
toKml() |
protected KMZFolder |
toKmz() |
java.lang.Object |
toObjectOf(java.lang.Class<?> target,
ExportFilters filters)
Export to the specified target class type
|
addOnPropertyChangedListener, computeEllipseTestVerts, firePropertyChangedEvent, getAnchorItem, getBounds, getCenter, getNorthRef, getOffsetAngle, getProjectionProportition, getXTestOffset, getYTestOffset, isShowingEdgeToCenter, isShowingMils, removeOnPropertyChangedListener, save, setBearingUnits, setCenterMarker, setEdgeToCenterDirection, setGridAzimuth, setMagneticAzimuth, setProjectionProportion, setTrueAzimuth
addOnBasicLineStyleChangedListener, addOnFillColorChangedListener, addOnPointsChangedListener, addOnStrokeColorChangedListener, addOnStrokeWeightChangedListener, addOnStyleChangedListener, addStyleBits, findTouchPoint, getArea, getBasicLineStyle, getClickPoint, getFillColor, getGeoPointMetaData, getIconColor, getPerimeterOrLength, getStrokeStyle, getStrokeWeight, getStyle, getTitle, onBasicLineStyleChanged, onFillColorChanged, onPointsChanged, onStrokeColorChanged, onStrokeStyleChanged, onStrokeWeightChanged, onStyleChanged, removeOnBasicLineStyleChangedListener, removeOnFillColorChangedListener, removeOnPointsChangedListener, removeOnStrokeColorChangedListener, removeOnStrokeWeightChangedListener, removeOnStyleChangedListener, removeStyleBits, setBasicLineStyle, setColor, setColor, setFillAlpha, setFillColor, setStrokeColor, setStrokeStyle, setStrokeWeight, setStyle, setTouchPoint, wrap180
addOnAltitudeModeChangedListener, addOnClickableChangedListener, addOnGroupChangedListener, addOnHeightChangedListener, addOnMetadataChangedListener, addOnMetadataChangedListener, addOnTypeChangedListener, addOnVisibleChangedListener, addOnZOrderChangedListener, computeDistance, copyMetaData, createSerialId, dispose, getAltitudeMode, getClickable, getEditable, getGroup, getHashtags, getHeight, getHitRadius, getIconDrawable, getMetaBoolean, getMetaString, getMovable, getRadialMenuPath, getRemarks, getRemarksKey, getSerialId, getTag, getType, getUID, getUniqueMapItemName, getURI, getVisible, getVisible, getZOrder, isTouchable, notifyMetadataChanged, onAdded, onAltitudeModeChanged, onClickableChanged, onGroupChanged, onHeightChanged, onMetadataChanged, onRemoved, onTypeChanged, onVisibilityConditions, onVisibleChanged, onZOrderChanged, persist, refresh, removeFromGroup, removeMetaData, removeOnAltitudeModeChangedListener, removeOnClickableChangedListener, removeOnGroupChangedListener, removeOnHeightChangedListener, removeOnMetadataChangedListener, removeOnMetadataChangedListener, removeOnTypeChangedListener, removeOnVisibleChangedListener, removeOnZOrderChangedListener, setAltitudeMode, setClickable, setClickPoint, setEditable, setHashtags, setHeight, setMetaBoolean, setMetaData, setMetaDouble, setMetaIntArray, setMetaInteger, setMetaLong, setMetaMap, setMetaParcelable, setMetaSerializable, setMetaString, setMetaStringArrayList, setMovable, setRadialMenu, setRemarks, setTag, setTouchable, setType, setVisible, setVisible, setZOrder, testOrthoHit, toString
get, getMetaData, getMetaDouble, getMetaIntArray, getMetaInteger, getMetaLong, getMetaMap, getMetaParcelable, getMetaSerializable, getMetaStringArrayList, hasMetaValue, setMetaDataImpl, toggleMetaData
public AngleOverlayShape(java.lang.String uid)
public AngleOverlayShape(long serialId, MetaDataHolder metadata, java.lang.String uid)
public void setSimpleSpokeView(boolean simpleSpokeView)
public boolean showSimpleSpokeView()
public void setCenter(GeoPointMetaData gp)
setCenter
in class AutoSizeAngleOverlayShape
public double getRadius()
public java.lang.String getFormattedRadius()
public void setRadius(double radius)
radius
- - the desired radius in Meterspublic void setRadius(double radius, Span units)
public Span getRadiusUnits()
public GeoPoint[] getInnerArrowPoints()
public void setTitle(java.lang.String title)
MapItem
public GeoPoint[] getPoints()
Shape
getPoints
in class AutoSizeAngleOverlayShape
public GeoPointMetaData[] getMetaDataPoints()
Shape
getMetaDataPoints
in class AutoSizeAngleOverlayShape
public int getStrokeColor()
Shape
getStrokeColor
in class Shape
Color
public android.os.Bundle preDrawCanvas(CapturePP cap)
Capturable
preDrawCanvas
in interface Capturable
preDrawCanvas
in class Shape
cap
- Capture instance (use forward() to convert)public void drawCanvas(CapturePP cap, android.os.Bundle data)
Capturable
drawCanvas
in interface Capturable
drawCanvas
in class Shape
cap
- Canvas to draw to (use getCanvas())data
- Point data saved in preDrawCanvaspublic boolean isSupported(java.lang.Class<?> target)
Exportable
isSupported
in interface Exportable
target
- the target classpublic java.lang.Object toObjectOf(java.lang.Class<?> target, ExportFilters filters) throws FormatNotSupportedException
Exportable
toObjectOf
in interface Exportable
target
- the target classfilters
- Allows ExportMarshal
instances to filter e.g. based
on geographic region or other criteriaFormatNotSupportedException
- if there is an issue creating the object.protected Folder toKml()
protected KMZFolder toKmz()