public class DrawingRectangle extends Rectangle implements Exportable
Modifier and Type | Class and Description |
---|---|
static class |
DrawingRectangle.Builder |
static class |
DrawingRectangle.KmlDrawingRectangleImportFactory |
Rectangle.MovePointAction, Rectangle.OnMoveListener
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
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_MASK
CLICKABLE_DEFAULT, EDITABLE_DEFAULT, EMPTY_TYPE, HIT_RATIO_DEFAULT, MOVABLE_DEFAULT, VISIBLE_DEFAULT, ZORDER_DEFAULT, ZORDER_HITTEST_COMPARATOR, ZORDER_RENDER_COMPARATOR
metadata
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, toggleMetaData
getAssociationAt, getAssociations, setAssociations
addOnBasicLineStyleChangedListener, 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, wrap180
addOnAltitudeModeChangedListener, 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, toString
get, getMetaData, getMetaDouble, getMetaIntArray, getMetaInteger, getMetaLong, getMetaMap, getMetaParcelable, getMetaSerializable, getMetaStringArrayList, hasMetaValue, setMetaDataImpl
public 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()
Rectangle
return "airfieldUID";
protected java.lang.String getAssocType()
getAssocType
in class Rectangle
protected java.lang.String getCenterMarkerType()
getCenterMarkerType
in class Rectangle
protected java.lang.String getMenuPath()
getMenuPath
in class Rectangle
protected java.lang.String getCotType()
getCotType
in class Rectangle
public java.lang.String getCornerPointType()
Rectangle
return "airfield_corner";
getCornerPointType
in class Rectangle
Rectangle
protected java.lang.String getSideMarkerType()
Rectangle
return "airfield_side";
getSideMarkerType
in class Rectangle
Rectangle
protected CotEvent toCot()
protected Folder toKml()
protected KMZFolder toKmz()
protected OGRFeatureExportWrapper toOgrGeometry() throws FormatNotSupportedException
FormatNotSupportedException
protected GPXExportWrapper toGpx() throws FormatNotSupportedException
FormatNotSupportedException
public 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.public android.os.Bundle preDrawCanvas(CapturePP capture)
Capturable
preDrawCanvas
in interface Capturable
preDrawCanvas
in class Shape
capture
- Capture instance (use forward() to convert)public void drawCanvas(CapturePP capture, android.os.Bundle data)
Capturable
drawCanvas
in interface Capturable
drawCanvas
in class Shape
capture
- Canvas to draw to (use getCanvas())data
- Point data saved in preDrawCanvas