NASA World Wind

gov.nasa.worldwind.examples.analytics
Class AnalyticSurfaceLegend.OrderedLabel

java.lang.Object
  extended by gov.nasa.worldwind.examples.analytics.AnalyticSurfaceLegend.OrderedLabel
All Implemented Interfaces:
Pickable, OrderedRenderable, Renderable
Enclosing class:
AnalyticSurfaceLegend

protected static class AnalyticSurfaceLegend.OrderedLabel
extends java.lang.Object
implements OrderedRenderable


Field Summary
protected  AnalyticSurfaceLegend.LabelAttributes attr
           
protected  java.lang.String halign
           
protected  AnalyticSurfaceLegend legend
           
protected  java.lang.String valign
           
protected  double x
           
protected  double y
           
 
Constructor Summary
AnalyticSurfaceLegend.OrderedLabel(AnalyticSurfaceLegend legend, AnalyticSurfaceLegend.LabelAttributes attr, double x, double y, java.lang.String halign, java.lang.String valign)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attr

protected final AnalyticSurfaceLegend.LabelAttributes attr

halign

protected final java.lang.String halign

legend

protected final AnalyticSurfaceLegend legend

valign

protected final java.lang.String valign

x

protected final double x

y

protected final double y
Constructor Detail

AnalyticSurfaceLegend.OrderedLabel

public AnalyticSurfaceLegend.OrderedLabel(AnalyticSurfaceLegend legend,
                                          AnalyticSurfaceLegend.LabelAttributes attr,
                                          double x,
                                          double y,
                                          java.lang.String halign,
                                          java.lang.String valign)
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

NASA World Wind