NASA World Wind

gov.nasa.worldwind.render
Class BasicAnnotationRenderer.OrderedAnnotation

java.lang.Object
  extended by gov.nasa.worldwind.render.BasicAnnotationRenderer.OrderedAnnotation
All Implemented Interfaces:
Pickable, OrderedRenderable, Renderable
Enclosing class:
BasicAnnotationRenderer

protected class BasicAnnotationRenderer.OrderedAnnotation
extends java.lang.Object
implements OrderedRenderable


Field Summary
protected  Annotation annotation
           
protected  double eyeDistance
           
protected  Layer layer
           
 
Constructor Summary
BasicAnnotationRenderer.OrderedAnnotation(Annotation annotation, double eyeDistance)
           
BasicAnnotationRenderer.OrderedAnnotation(Annotation annotation, Layer layer, double eyeDistance)
           
 
Method Summary
 double getDistanceFromEye()
           
 void pick(DrawContext dc, java.awt.Point pickPoint)
           
 void render(DrawContext dc)
          Causes this Renderable to render itself using the DrawContext provided.
protected  void renderNow(DrawContext dc, BasicAnnotationRenderer.OrderedAnnotation oa)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

annotation

protected Annotation annotation

eyeDistance

protected double eyeDistance

layer

protected Layer layer
Constructor Detail

BasicAnnotationRenderer.OrderedAnnotation

public BasicAnnotationRenderer.OrderedAnnotation(Annotation annotation,
                                                 double eyeDistance)

BasicAnnotationRenderer.OrderedAnnotation

public BasicAnnotationRenderer.OrderedAnnotation(Annotation annotation,
                                                 Layer layer,
                                                 double eyeDistance)
Method Detail

getDistanceFromEye

public double getDistanceFromEye()
Specified by:
getDistanceFromEye in interface OrderedRenderable

pick

public void pick(DrawContext dc,
                 java.awt.Point pickPoint)
Specified by:
pick in interface Pickable

render

public void render(DrawContext dc)
Description copied from interface: Renderable
Causes this Renderable to render itself using the DrawContext provided. The DrawContext provides the elevation model, openGl instance, globe and other information required for drawing. It is recommended that the DrawContext is non-null as most implementations do not support null DrawContexts.

Specified by:
render in interface Renderable
Parameters:
dc - the DrawContext to be used
See Also:
DrawContext

renderNow

protected void renderNow(DrawContext dc,
                         BasicAnnotationRenderer.OrderedAnnotation oa)

NASA World Wind