public class DrawingShape extends EditablePolyline implements ParentMapItem
Modifier and Type | Class and Description |
---|---|
static class |
DrawingShape.KmlDrawingShapeImportFactory |
EditablePolyline.ActionProviderInterface, EditablePolyline.ExchangePointAction, EditablePolyline.InsertPointAction, EditablePolyline.MovePointAction, EditablePolyline.OnEditableChangedListener, EditablePolyline.RemoveMarkerAction, EditablePolyline.RemovePointAction
Polyline.OnAltitudeModeChangedListener, Polyline.OnHeightStyleChangedListener, Polyline.OnLabelsChangedListener, Polyline.OnLabelTextSizeChanged
Shape.OnBasicLineStyleChangedListener, Shape.OnFillColorChangedListener, Shape.OnPointsChangedListener, Shape.OnStrokeColorChangedListener, Shape.OnStrokeWeightChangedListener, Shape.OnStyleChangedListener
MapItem.OnClickableChangedListener, MapItem.OnGroupChangedListener, MapItem.OnHeightChangedListener, MapItem.OnMetadataChangedListener, MapItem.OnTypeChangedListener, MapItem.OnVisibleChangedListener, MapItem.OnZOrderChangedListener
_actionProvider, _shapeMarker, context, controlPoints, indexToMarker, indexToMarker2, mapView, markerToIndex, TAG
_points, DEFAULT_MAX_LABEL_RENDER_RESOLUTION, DEFAULT_MAX_LINE_RENDER_RESOLUTION, DEFAULT_MIN_LABEL_RENDER_RESOLUTION, DEFAULT_MIN_LINE_RENDER_RESOLUTION, HEIGHT_EXTRUDE_CENTER_ALT, HEIGHT_EXTRUDE_DEFAULT, HEIGHT_EXTRUDE_MAX_ALT, HEIGHT_EXTRUDE_MIN_ALT, HEIGHT_EXTRUDE_PER_POINT, HEIGHT_STYLE_NONE, HEIGHT_STYLE_OUTLINE, HEIGHT_STYLE_OUTLINE_SIMPLE, HEIGHT_STYLE_POLYGON, HEIGHT_STYLE_TOP_ONLY, minimumBoundingBox, PARTITION_SIZE, STYLE_CLOSED_MASK, STYLE_OUTLINE_HALO_MASK, STYLE_OUTLINE_STROKE_MASK
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 |
---|
DrawingShape(MapView mapView,
MapGroup mapGroup,
java.lang.String uid)
Create a new drawing shape
|
DrawingShape(MapView mapView,
java.lang.String uid) |
Modifier and Type | Method and Description |
---|---|
double |
getArea()
Returns the Area of the shape in meters
|
MapGroup |
getChildMapGroup()
Get this item's child map group
|
protected java.lang.String |
getCornerMenu()
Provides a shape menu to be used when the shape corner is touched.
|
protected java.lang.String |
getCotType() |
protected java.lang.String |
getLineMenu()
Provides a shape menu to be used when the shape line is touched.
|
protected java.lang.String |
getMarkerPointType() |
protected java.lang.String |
getShapeMenu()
Provides a shape menu to be used when the shape is touched.
|
void |
onItemAdded(MapItem item,
MapGroup oldParent) |
void |
onItemRemoved(MapItem item,
MapGroup oldParent) |
protected void |
onPointsChanged() |
void |
setClosed(boolean closed) |
void |
setCornerMenu(java.lang.String menu) |
void |
setFillColor(int color)
Ignored for open (non closed) Shapes
Invoke
setClosed(true) prior to this method |
void |
setHeight(double height)
Set the height of this item
|
void |
setLineMenu(java.lang.String menu) |
void |
setLineStyle(int style)
STYLE_SOLID = 0, STYLE_DOTTED = 1, STYLE_DASHED = 2 and STYLE_OUTLINED = 3
|
void |
setMarkerPointType(java.lang.String type) |
void |
setMovable(boolean movable) |
void |
setShapeMenu(java.lang.String menu) |
void |
setTitle(java.lang.String title)
Set the title of this map item (display name)
|
CotEvent |
toCot()
Produce a CoT message that represents the Route
|
void |
toggleMetaData(java.lang.String key,
boolean value) |
addListeners, addMarker, addMarker, addMarkers, addOnEditableChangedListener, addPoint, addPoint, addPointNoSync, clear, clearPoints, clearPointsImpl, clearWithoutNotify, createKmlGeometry, createOuterPlacemark, delete, determineIfFilled, drawCanvas, getActionProvider, getAnchorItem, getAvgAltitude, getCenter, getColor, getEditable, getFilled, getIndexOfMarker, getIndexOfPoint, getLineStyle, getMarker, getMarker, getMaxAltitude, getMinAltitude, getNumPoints, getPoint, getPointMapItem, getPointMapItemArray, getPointMapItems, getShapeMarker, getTitle, getUIDKey, getUndoable, hasMarker, hideLabels, isBulkOperation, isClosed, isSupported, kmlDataList, kmlFolderName, moveClosedSet, onVisibleChanged, onZOrderChanged, preDrawCanvas, removeListeners, removeMarker, removeMarker, removeMarker, removeMarker, removeMarkerNoSync, removeOnEditableChangedListener, removePoint, resetAlpha, reverse, setAbsoluteKMLElev, setAlpha, setBulkOperation, setClickable, setColor, setEditable, setFilled, setLocked, setMarker, setMarkerNoSync, setPoint, setPoint, setPoints, setShapeMarker, setStrokeColor, setStrokeWeight, setUndoable, setZOrder, shouldDisplayVertices, testLinesHit, testLinesHit, testPointsHit, toGpx, toKml, toKmz, toObjectOf
addHeightStyle, addOnHeightStyleChangedListener, addOnLabelsChangedListener, addOnLabelTextSizeChangedListener, getBounds, getHeightExtrudeMode, getHeightStyle, getLabels, getLabelTextSize, getLabelTypeface, getLineLabel, getMetaDataPoints, getPerimeterOrLength, getPoints, getPoints, getPoints, getRelativeBounds, getTotalDistance, onHeightStyleChanged, onLabelsChanged, onLabelTextSizeChanged, onMetadataChanged, removeHeightStyle, removeOnHeightStyleChangedListener, removeOnLabelsChangedListener, removeOnLabelTextSizeChangedListner, setHeightExtrudeMode, setHeightStyle, setLabels, setLabelTextSize, setLabelTextSize, setLabelTextTypeface, setLineLabel, setMaxLabelRenderResolution, setMaxRenderResolution, setMinLabelRenderResolution, setMinRenderResolution, setPoints, setPoints, setPoints, setPoints
addOnBasicLineStyleChangedListener, addOnFillColorChangedListener, addOnPointsChangedListener, addOnStrokeColorChangedListener, addOnStrokeWeightChangedListener, addOnStyleChangedListener, addStyleBits, findTouchPoint, getBasicLineStyle, getClickPoint, getFillColor, getGeoPointMetaData, getIconColor, getStrokeColor, getStrokeStyle, getStrokeWeight, getStyle, onBasicLineStyleChanged, onFillColorChanged, onStrokeColorChanged, onStrokeStyleChanged, onStrokeWeightChanged, onStyleChanged, removeOnBasicLineStyleChangedListener, removeOnFillColorChangedListener, removeOnPointsChangedListener, removeOnStrokeColorChangedListener, removeOnStrokeWeightChangedListener, removeOnStyleChangedListener, removeStyleBits, setBasicLineStyle, 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, onGroupChanged, onHeightChanged, 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 DrawingShape(MapView mapView, MapGroup mapGroup, java.lang.String uid)
mapView
- Map view instancemapGroup
- The map group this item will be added touid
- UIDpublic DrawingShape(MapView mapView, java.lang.String uid)
public void setTitle(java.lang.String title)
MapItem
setTitle
in class EditablePolyline
title
- Item titlepublic void toggleMetaData(java.lang.String key, boolean value)
toggleMetaData
in class FilterMetaDataHolder
public void setFillColor(int color)
setClosed(true)
prior to this methodsetFillColor
in class EditablePolyline
color
- the fill color in ARGB format.public MapGroup getChildMapGroup()
ParentMapItem
getChildMapGroup
in interface ParentMapItem
public void setClosed(boolean closed)
setClosed
in class EditablePolyline
protected java.lang.String getMarkerPointType()
public void setHeight(double height)
MapItem
public void setMovable(boolean movable)
setMovable
in class MapItem
public void setMarkerPointType(java.lang.String type)
protected java.lang.String getCotType()
public void setShapeMenu(java.lang.String menu)
public void setCornerMenu(java.lang.String menu)
public void setLineMenu(java.lang.String menu)
protected java.lang.String getShapeMenu()
EditablePolyline
getShapeMenu
in class EditablePolyline
protected java.lang.String getCornerMenu()
EditablePolyline
getCornerMenu
in class EditablePolyline
protected java.lang.String getLineMenu()
EditablePolyline
getLineMenu
in class EditablePolyline
protected void onPointsChanged()
onPointsChanged
in class EditablePolyline
public void setLineStyle(int style)
EditablePolyline
setLineStyle
in class EditablePolyline
public void onItemAdded(MapItem item, MapGroup oldParent)
onItemAdded
in interface MapItem.OnGroupChangedListener
onItemAdded
in class EditablePolyline
public void onItemRemoved(MapItem item, MapGroup oldParent)
onItemRemoved
in interface MapItem.OnGroupChangedListener
onItemRemoved
in class EditablePolyline
public CotEvent toCot()
EditablePolyline
toCot
in class EditablePolyline