NASA World Wind

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

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

protected static class AnalyticSurfaceLegend.OrderedLabel
extends Object
implements OrderedRenderable


Field Summary
protected  AnalyticSurfaceLegend.LabelAttributes attr
           
protected  String halign
           
protected  AnalyticSurfaceLegend legend
           
protected  String valign
           
protected  double x
           
protected  double y
           
 
Constructor Summary
AnalyticSurfaceLegend.OrderedLabel(AnalyticSurfaceLegend legend, AnalyticSurfaceLegend.LabelAttributes attr, double x, double y, String halign, String valign)
           
 
Method Summary
 double getDistanceFromEye()
          Returns the ordered renderable's distance from the current view's eye point.
 void pick(DrawContext dc, Point pickPoint)
          Executes a pick of the ordered renderable.
 void render(DrawContext dc)
          Causes this Renderable to render itself using the provided draw context.
 
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 String halign

legend

protected final AnalyticSurfaceLegend legend

valign

protected final 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,
                                          String halign,
                                          String valign)
Method Detail

getDistanceFromEye

public double getDistanceFromEye()
Description copied from interface: OrderedRenderable
Returns the ordered renderable's distance from the current view's eye point. Intended to be used only to sort a list of ordered renderables according to eye distance, and only during frame generation when a view is active.

Specified by:
getDistanceFromEye in interface OrderedRenderable
Returns:
the distance of the ordered renderable from the current view's eye point.

pick

public void pick(DrawContext dc,
                 Point pickPoint)
Description copied from interface: OrderedRenderable
Executes a pick of the ordered renderable.

Specified by:
pick in interface OrderedRenderable
Parameters:
dc - the current draw context.
pickPoint - the pick point.

render

public void render(DrawContext dc)
Description copied from interface: Renderable
Causes this Renderable to render itself using the provided draw context.

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

NASA World Wind