Class WWOMeasureToolControlPoints.ControlPoint
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.render.AbstractAnnotation
-
- gov.nasa.worldwind.render.GlobeAnnotation
-
- gov.nasa.worldwindx.applications.worldwindow.util.measuretool.WWOMeasureToolControlPoints.ControlPoint
-
- All Implemented Interfaces:
AVList
,Disposable
,Draggable
,Locatable
,Movable
,Annotation
,Renderable
,Restorable
,WWOMeasureTool.ControlPoint
- Enclosing class:
- WWOMeasureToolControlPoints
public class WWOMeasureToolControlPoints.ControlPoint extends GlobeAnnotation implements WWOMeasureTool.ControlPoint
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractAnnotation
AbstractAnnotation.TextCacheKey
-
-
Field Summary
-
Fields inherited from class gov.nasa.worldwind.render.GlobeAnnotation
altitudeMode, dragEnabled, draggableSupport, heightInMeter, position
-
Fields inherited from class gov.nasa.worldwind.render.AbstractAnnotation
alwaysOnTop, attributes, childList, delegateOwner, layoutManager, maxActiveAltitude, minActiveAltitude, pickEnabled, pickSupport, text, textBoundsMap, vertexBuffer, wrappedTextMap
-
Fields inherited from interface gov.nasa.worldwind.render.Annotation
ANTIALIAS_DONT_CARE, ANTIALIAS_FASTEST, ANTIALIAS_NICEST
-
-
Constructor Summary
Constructors Constructor Description ControlPoint(Position position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WWOMeasureTool
getParent()
Position
getPosition()
java.lang.Object
getValue(java.lang.String key)
Returns the value for a specified key.void
highlight(boolean tf)
void
setPosition(Position position)
java.lang.Object
setValue(java.lang.String key, java.lang.Object value)
Adds a key/value pair to the list.-
Methods inherited from class gov.nasa.worldwind.render.GlobeAnnotation
computeBounds, computeDistanceScaleAndOpacity, computeLookAtDistance, doDrag, doRenderNow, drag, getAltitudeMode, getAnnotationDrawPoint, getAnnotationDrawPointLegacy, getHeightInMeter, getReferencePosition, getRestorableState, isDragEnabled, move, moveTo, restoreState, setAltitudeMode, setDepthFunc, setDragEnabled, setHeightInMeter
-
Methods inherited from class gov.nasa.worldwind.render.AbstractAnnotation
addChild, adjustSizeToChildren, adjustSizeToText, applyBackgroundTextureState, applyColor, applyScreenTransform, beginDraw, beginDrawChildren, bindPickableObject, computeBoundingRectangle, computeFreeBounds, computeInsetBounds, computeOpacity, computeScale, computeTextBounds, dispose, doDraw, doDrawBackgroundTexture, doDrawChildren, draw, drawBackground, drawBackgroundImage, drawBorder, drawCallout, drawChildren, drawContent, drawHTML, drawPlainText, drawText, drawText, drawTopLevelAnnotation, endDraw, endDrawChildren, getAttributes, getBounds, getChildren, getDelegateOwner, getLayout, getMaxActiveAltitude, getMinActiveAltitude, getMultiLineTextRenderer, getPickSupport, getPreferredSize, getText, getTextBounds, getTextRenderer, getWrappedText, glPointFromAWTPoint, isAlwaysOnTop, isPickEnabled, modulateColorOpacity, pick, removeAllChildren, removeChild, render, renderNow, setAlwaysOnTop, setAttributes, setDelegateOwner, setLayout, setMaxActiveAltitude, setMinActiveAltitude, setPickEnabled, setPickSupport, setText, transformBackgroundImageCoordsToAnnotationCoords, transformByModelview, transformImageCoordsToBackgroundImageCoords, wrapText
-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues
-
-
-
-
Constructor Detail
-
ControlPoint
public ControlPoint(Position position)
-
-
Method Detail
-
getParent
public WWOMeasureTool getParent()
- Specified by:
getParent
in interfaceWWOMeasureTool.ControlPoint
-
setPosition
public void setPosition(Position position)
- Specified by:
setPosition
in interfaceWWOMeasureTool.ControlPoint
- Overrides:
setPosition
in classGlobeAnnotation
-
getPosition
public Position getPosition()
- Specified by:
getPosition
in interfaceLocatable
- Specified by:
getPosition
in interfaceWWOMeasureTool.ControlPoint
- Overrides:
getPosition
in classGlobeAnnotation
-
highlight
public void highlight(boolean tf)
- Specified by:
highlight
in interfaceWWOMeasureTool.ControlPoint
-
setValue
public java.lang.Object setValue(java.lang.String key, java.lang.Object value)
Description copied from interface:AVList
Adds a key/value pair to the list. Replaces an existing key/value pair if the list already contains the key.- Specified by:
setValue
in interfaceAVList
- Specified by:
setValue
in interfaceWWOMeasureTool.ControlPoint
- Overrides:
setValue
in classAVListImpl
- Parameters:
key
- the attribute name. May not benull
.value
- the attribute value. May benull
, in which case any existing value for the key is removed from the collection.- Returns:
- previous value associated with specified key, or null if there was no mapping for key. A null return can also indicate that the map previously associated null with the specified key, if the implementation supports null values.
-
getValue
public java.lang.Object getValue(java.lang.String key)
Description copied from interface:AVList
Returns the value for a specified key.- Specified by:
getValue
in interfaceAVList
- Specified by:
getValue
in interfaceWWOMeasureTool.ControlPoint
- Overrides:
getValue
in classAVListImpl
- Parameters:
key
- the attribute name. May not benull
.- Returns:
- the attribute value if one exists in the collection, otherwise
null
.
-
-