NASA World Wind

gov.nasa.worldwind.render
Class SegmentPlaneRenderer.OrderedText

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

protected static class SegmentPlaneRenderer.OrderedText
extends Object
implements OrderedRenderable


Field Summary
protected  SegmentPlaneAttributes.LabelAttributes attributes
           
protected  double distanceFromEye
           
protected  Position position
           
protected  SegmentPlane segmentPlane
           
protected  MultiLineTextRenderer textRenderer
           
protected  AVList values
           
 
Constructor Summary
SegmentPlaneRenderer.OrderedText(SegmentPlane segmentPlane, Position position, double distanceFromEye, AVList values, SegmentPlaneAttributes.LabelAttributes attributes, MultiLineTextRenderer textRenderer)
           
 
Method Summary
protected  void begin(DrawContext dc, OGLStackHandler ogsh)
           
protected  void draw(DrawContext dc)
           
protected  void drawText(String text, Vec4 screenPoint, SegmentPlaneAttributes.LabelAttributes attributes, MultiLineTextRenderer mltr)
           
protected  void end(DrawContext dc, OGLStackHandler ogsh)
           
 double getDistanceFromEye()
           
 Vec4 getScreenPoint(DrawContext dc)
           
 String getText()
           
 void pick(DrawContext dc, 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

attributes

protected SegmentPlaneAttributes.LabelAttributes attributes

distanceFromEye

protected final double distanceFromEye

position

protected final Position position

segmentPlane

protected SegmentPlane segmentPlane

textRenderer

protected MultiLineTextRenderer textRenderer

values

protected AVList values
Constructor Detail

SegmentPlaneRenderer.OrderedText

public SegmentPlaneRenderer.OrderedText(SegmentPlane segmentPlane,
                                        Position position,
                                        double distanceFromEye,
                                        AVList values,
                                        SegmentPlaneAttributes.LabelAttributes attributes,
                                        MultiLineTextRenderer textRenderer)
Method Detail

begin

protected void begin(DrawContext dc,
                     OGLStackHandler ogsh)

draw

protected void draw(DrawContext dc)

drawText

protected void drawText(String text,
                        Vec4 screenPoint,
                        SegmentPlaneAttributes.LabelAttributes attributes,
                        MultiLineTextRenderer mltr)

end

protected void end(DrawContext dc,
                   OGLStackHandler ogsh)

getDistanceFromEye

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

getScreenPoint

public Vec4 getScreenPoint(DrawContext dc)

getText

public String getText()

pick

public void pick(DrawContext dc,
                 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