NASA World Wind

gov.nasa.worldwind.util.measure
Class MeasureTool.ControlPointWithLeader

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.render.AbstractAnnotation
          extended by gov.nasa.worldwind.render.GlobeAnnotation
              extended by gov.nasa.worldwind.util.measure.MeasureTool.ControlPoint
                  extended by gov.nasa.worldwind.util.measure.MeasureTool.ControlPointWithLeader
All Implemented Interfaces:
AVList, Disposable, Locatable, Movable, Annotation, PreRenderable, Renderable, Restorable
Enclosing class:
MeasureTool

protected static class MeasureTool.ControlPointWithLeader
extends MeasureTool.ControlPoint
implements PreRenderable


Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractAnnotation
AbstractAnnotation.TextCacheKey
 
Field Summary
protected  SurfacePolyline leaderLine
           
 
Fields inherited from class gov.nasa.worldwind.render.GlobeAnnotation
altitudeMode, 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
MeasureTool.ControlPointWithLeader(Position position, AnnotationAttributes controlPointAttributes, ShapeAttributes leaderAttributes, MeasureTool parent)
           
 
Method Summary
 void preRender(DrawContext dc)
           
 void render(DrawContext dc)
          Render the annotation.
 void setLeaderLocations(LatLon begin, LatLon end)
           
 
Methods inherited from class gov.nasa.worldwind.util.measure.MeasureTool.ControlPoint
getParent
 
Methods inherited from class gov.nasa.worldwind.render.GlobeAnnotation
computeBounds, computeDistanceScaleAndOpacity, computeLookAtDistance, doRenderNow, getAltitudeMode, getAnnotationDrawPoint, getAnnotationDrawPointLegacy, getHeightInMeter, getPosition, getReferencePosition, getRestorableState, move, moveTo, restoreState, setAltitudeMode, setDepthFunc, setHeightInMeter, setPosition
 
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, 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, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

leaderLine

protected SurfacePolyline leaderLine
Constructor Detail

MeasureTool.ControlPointWithLeader

public MeasureTool.ControlPointWithLeader(Position position,
                                          AnnotationAttributes controlPointAttributes,
                                          ShapeAttributes leaderAttributes,
                                          MeasureTool parent)
Method Detail

preRender

public void preRender(DrawContext dc)
Specified by:
preRender in interface PreRenderable

render

public void render(DrawContext dc)
Description copied from class: AbstractAnnotation
Render the annotation. Called as a Renderable.

Specified by:
render in interface Renderable
Overrides:
render in class AbstractAnnotation
Parameters:
dc - the current DrawContext.
See Also:
DrawContext

setLeaderLocations

public void setLeaderLocations(LatLon begin,
                               LatLon end)

NASA World Wind