Class AnalyticSurfaceLegend.OrderedLabel
- java.lang.Object
-
- gov.nasa.worldwindx.examples.analytics.AnalyticSurfaceLegend.OrderedLabel
-
- All Implemented Interfaces:
OrderedRenderable,Renderable
- Enclosing class:
- AnalyticSurfaceLegend
protected static class AnalyticSurfaceLegend.OrderedLabel extends java.lang.Object implements OrderedRenderable
-
-
Field Summary
Fields Modifier and Type Field Description protected AnalyticSurfaceLegend.LabelAttributesattrprotected java.lang.Stringhalignprotected AnalyticSurfaceLegendlegendprotected java.lang.Stringvalignprotected doublexprotected doubley
-
Constructor Summary
Constructors Constructor Description OrderedLabel(AnalyticSurfaceLegend legend, AnalyticSurfaceLegend.LabelAttributes attr, double x, double y, java.lang.String halign, java.lang.String valign)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetDistanceFromEye()Returns the ordered renderable's distance from the current view's eye point.voidpick(DrawContext dc, java.awt.Point pickPoint)Executes a pick of the ordered renderable.voidrender(DrawContext dc)Causes thisRenderableto render itself using the provided draw context.
-
-
-
Field Detail
-
legend
protected final AnalyticSurfaceLegend legend
-
attr
protected final AnalyticSurfaceLegend.LabelAttributes attr
-
x
protected final double x
-
y
protected final double y
-
halign
protected final java.lang.String halign
-
valign
protected final java.lang.String valign
-
-
Constructor Detail
-
OrderedLabel
public OrderedLabel(AnalyticSurfaceLegend legend, AnalyticSurfaceLegend.LabelAttributes attr, double x, double y, java.lang.String halign, java.lang.String valign)
-
-
Method Detail
-
getDistanceFromEye
public double getDistanceFromEye()
Description copied from interface:OrderedRenderableReturns 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:
getDistanceFromEyein interfaceOrderedRenderable- Returns:
- the distance of the ordered renderable from the current view's eye point.
-
render
public void render(DrawContext dc)
Description copied from interface:RenderableCauses thisRenderableto render itself using the provided draw context.- Specified by:
renderin interfaceRenderable- Parameters:
dc- theDrawContextto be used- See Also:
DrawContext
-
pick
public void pick(DrawContext dc, java.awt.Point pickPoint)
Description copied from interface:OrderedRenderableExecutes a pick of the ordered renderable.- Specified by:
pickin interfaceOrderedRenderable- Parameters:
dc- the current draw context.pickPoint- the pick point.
-
-