public class DrawingRectangle extends Rectangle implements Exportable
| Modifier and Type | Class and Description |
|---|---|
static class |
DrawingRectangle.Builder |
static class |
DrawingRectangle.KmlDrawingRectangleImportFactory |
Rectangle.MovePointAction, Rectangle.OnMoveListenerShape.OnBasicLineStyleChangedListener, Shape.OnFillColorChangedListener, Shape.OnPointsChangedListener, Shape.OnStrokeColorChangedListener, Shape.OnStrokeWeightChangedListener, Shape.OnStyleChangedListenerMapItem.OnAltitudeModeChangedListener, MapItem.OnClickableChangedListener, MapItem.OnGroupChangedListener, MapItem.OnHeightChangedListener, MapItem.OnMetadataChangedListener, MapItem.OnTypeChangedListener, MapItem.OnVisibleChangedListener, MapItem.OnZOrderChangedListener| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_BPHA |
BASIC_LINE_STYLE_DASHED, BASIC_LINE_STYLE_DOTTED, BASIC_LINE_STYLE_OUTLINED, BASIC_LINE_STYLE_SOLID, STYLE_FILLED_MASK, STYLE_STROKE_MASKCLICKABLE_DEFAULT, EDITABLE_DEFAULT, EMPTY_TYPE, HIT_RATIO_DEFAULT, MOVABLE_DEFAULT, VISIBLE_DEFAULT, ZORDER_DEFAULT, ZORDER_HITTEST_COMPARATOR, ZORDER_RENDER_COMPARATORmetadata| Modifier | Constructor and Description |
|---|---|
|
DrawingRectangle(MapGroup mapGroup,
GeoPointMetaData p0,
GeoPointMetaData p1,
GeoPointMetaData p2,
GeoPointMetaData p3,
java.lang.String uid) |
protected |
DrawingRectangle(MapGroup mapGroup,
java.lang.String uid) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawCanvas(CapturePP capture,
android.os.Bundle data)
Draw the item to the canvas
|
protected java.lang.String |
getAssocType() |
protected java.lang.String |
getCenterMarkerType() |
java.lang.String |
getCornerPointType()
SubClasses should override this function so that corner points have a specialized type, (e.g.
|
protected java.lang.String |
getCotType() |
protected java.lang.String |
getMenuPath() |
protected java.lang.String |
getSideMarkerType()
SubClasses should override this function so that side points have a specialized type, (e.g.
|
protected java.lang.String |
getUIDKey()
SubClasses should override this function in order to mark each corner point with a
specialized parent UID Key, (e.g.
|
boolean |
isSupported(java.lang.Class<?> target)
Check if this instance supports the specified target class type
|
android.os.Bundle |
preDrawCanvas(CapturePP capture)
Save forwarded points to meta data holder
These will be used later in drawCanvas
|
protected CotEvent |
toCot() |
protected GPXExportWrapper |
toGpx() |
protected Folder |
toKml() |
protected KMZFolder |
toKmz() |
java.lang.Object |
toObjectOf(java.lang.Class<?> target,
ExportFilters filters)
Export to the specified target class type
|
protected OGRFeatureExportWrapper |
toOgrGeometry() |
addOnMovedListener, computeCorners, getAnchorItem, getAnchorMarkers, getArea, getAssociationMarkerIndex, getAvgAltitude, getBounds, getCenter, getCenterMarker, getChildMapGroup, getColor, getEditable, getFillColor, getFilled, getGeoPoints, getIndexOfPoint, getLength, getLineStyle, getMetaDataPoints, getMirrorWidth, getNumPoints, getPerimeterOrLength, getPointAt, getPoints, getStrokeColor, getTitle, getWidth, hasPoint, isCenterShapeMarker, move, move, onGroupChanged, onItemAdded, onItemRemoved, onMoved, onPointChanged, onPointsChanged, onSharedPreferenceChanged, onVisibleChanged, removeOnMovedListener, setBasicLineStyle, setCenterMarker, setCenterPoint, setClickable, setEditable, setFillColor, setFilled, setHeight, setLabelVisibility, setLength, setLineStyle, setMovable, setPoint, setPointNoRecalc, setPoints, setStrokeColor, setStrokeWeight, setTitle, setWidth, setZOrder, showLines, showLines, showTacticalOverlay, showTacticalOverlay, toggleMetaDatagetAssociationAt, getAssociations, setAssociationsaddOnBasicLineStyleChangedListener, addOnFillColorChangedListener, addOnPointsChangedListener, addOnStrokeColorChangedListener, addOnStrokeWeightChangedListener, addOnStyleChangedListener, addStyleBits, findTouchPoint, getBasicLineStyle, getClickPoint, getGeoPointMetaData, getIconColor, getStrokeStyle, getStrokeWeight, getStyle, onBasicLineStyleChanged, onFillColorChanged, onStrokeColorChanged, onStrokeStyleChanged, onStrokeWeightChanged, onStyleChanged, removeOnBasicLineStyleChangedListener, removeOnFillColorChangedListener, removeOnPointsChangedListener, removeOnStrokeColorChangedListener, removeOnStrokeWeightChangedListener, removeOnStyleChangedListener, removeStyleBits, setColor, setColor, setFillAlpha, setStrokeStyle, setStyle, setTouchPoint, wrap180addOnAltitudeModeChangedListener, addOnClickableChangedListener, addOnGroupChangedListener, addOnHeightChangedListener, addOnMetadataChangedListener, addOnMetadataChangedListener, addOnTypeChangedListener, addOnVisibleChangedListener, addOnZOrderChangedListener, computeDistance, copyMetaData, createSerialId, dispose, getAltitudeMode, getClickable, 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, onHeightChanged, onMetadataChanged, onRemoved, onTypeChanged, onVisibilityConditions, onZOrderChanged, persist, refresh, removeFromGroup, removeMetaData, removeOnAltitudeModeChangedListener, removeOnClickableChangedListener, removeOnGroupChangedListener, removeOnHeightChangedListener, removeOnMetadataChangedListener, removeOnMetadataChangedListener, removeOnTypeChangedListener, removeOnVisibleChangedListener, removeOnZOrderChangedListener, setAltitudeMode, setClickPoint, setHashtags, setMetaBoolean, setMetaData, setMetaDouble, setMetaIntArray, setMetaInteger, setMetaLong, setMetaMap, setMetaParcelable, setMetaSerializable, setMetaString, setMetaStringArrayList, setRadialMenu, setRemarks, setTag, setTouchable, setType, setVisible, setVisible, testOrthoHit, toStringget, getMetaData, getMetaDouble, getMetaIntArray, getMetaInteger, getMetaLong, getMetaMap, getMetaParcelable, getMetaSerializable, getMetaStringArrayList, hasMetaValue, setMetaDataImplpublic static final java.lang.String KEY_BPHA
protected DrawingRectangle(MapGroup mapGroup, java.lang.String uid)
public DrawingRectangle(MapGroup mapGroup, GeoPointMetaData p0, GeoPointMetaData p1, GeoPointMetaData p2, GeoPointMetaData p3, java.lang.String uid)
protected java.lang.String getUIDKey()
Rectanglereturn "airfieldUID";protected java.lang.String getAssocType()
getAssocType in class Rectangleprotected java.lang.String getCenterMarkerType()
getCenterMarkerType in class Rectangleprotected java.lang.String getMenuPath()
getMenuPath in class Rectangleprotected java.lang.String getCotType()
getCotType in class Rectanglepublic java.lang.String getCornerPointType()
Rectanglereturn "airfield_corner";getCornerPointType in class RectangleRectangleprotected java.lang.String getSideMarkerType()
Rectanglereturn "airfield_side";getSideMarkerType in class RectangleRectangleprotected CotEvent toCot()
protected Folder toKml()
protected KMZFolder toKmz()
protected OGRFeatureExportWrapper toOgrGeometry() throws FormatNotSupportedException
FormatNotSupportedExceptionprotected GPXExportWrapper toGpx() throws FormatNotSupportedException
FormatNotSupportedExceptionpublic boolean isSupported(java.lang.Class<?> target)
ExportableisSupported in interface Exportabletarget - the target classpublic java.lang.Object toObjectOf(java.lang.Class<?> target,
ExportFilters filters)
throws FormatNotSupportedException
ExportabletoObjectOf in interface Exportabletarget - 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.public android.os.Bundle preDrawCanvas(CapturePP capture)
CapturablepreDrawCanvas in interface CapturablepreDrawCanvas in class Shapecapture - Capture instance (use forward() to convert)public void drawCanvas(CapturePP capture, android.os.Bundle data)
CapturabledrawCanvas in interface CapturabledrawCanvas in class Shapecapture - Canvas to draw to (use getCanvas())data - Point data saved in preDrawCanvas