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 WWOMeasureToolgetParent()PositiongetPosition()java.lang.ObjectgetValue(java.lang.String key)Returns the value for a specified key.voidhighlight(boolean tf)voidsetPosition(Position position)java.lang.ObjectsetValue(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:
getParentin interfaceWWOMeasureTool.ControlPoint
-
setPosition
public void setPosition(Position position)
- Specified by:
setPositionin interfaceWWOMeasureTool.ControlPoint- Overrides:
setPositionin classGlobeAnnotation
-
getPosition
public Position getPosition()
- Specified by:
getPositionin interfaceLocatable- Specified by:
getPositionin interfaceWWOMeasureTool.ControlPoint- Overrides:
getPositionin classGlobeAnnotation
-
highlight
public void highlight(boolean tf)
- Specified by:
highlightin interfaceWWOMeasureTool.ControlPoint
-
setValue
public java.lang.Object setValue(java.lang.String key, java.lang.Object value)Description copied from interface:AVListAdds a key/value pair to the list. Replaces an existing key/value pair if the list already contains the key.- Specified by:
setValuein interfaceAVList- Specified by:
setValuein interfaceWWOMeasureTool.ControlPoint- Overrides:
setValuein 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:AVListReturns the value for a specified key.- Specified by:
getValuein interfaceAVList- Specified by:
getValuein interfaceWWOMeasureTool.ControlPoint- Overrides:
getValuein classAVListImpl- Parameters:
key- the attribute name. May not benull.- Returns:
- the attribute value if one exists in the collection, otherwise
null.
-
-