NASA World Wind

gov.nasa.worldwind.render
Class GeographicTextRenderer

java.lang.Object
  extended by gov.nasa.worldwind.render.GeographicTextRenderer
All Implemented Interfaces:
Disposable

public class GeographicTextRenderer
extends Object
implements Disposable


Constructor Summary
GeographicTextRenderer()
           
 
Method Summary
protected  Point2D.Float computeDrawPoint(DrawContext dc, Rectangle2D rect, Vec4 screenPoint)
          Computes the final draw point for the given rectangle lower left corner and target screen point.
 void dispose()
           
 boolean isCullTextEnabled()
           
 void render(DrawContext dc, GeographicText text, Vec4 textPoint)
           
 void render(DrawContext dc, Iterable<GeographicText> text)
           
 void setCullTextEnabled(boolean cullText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeographicTextRenderer

public GeographicTextRenderer()
Method Detail

computeDrawPoint

protected Point2D.Float computeDrawPoint(DrawContext dc,
                                         Rectangle2D rect,
                                         Vec4 screenPoint)
Computes the final draw point for the given rectangle lower left corner and target screen point. If the returned point is null the text will not be drawn.

Parameters:
dc - the current DrawContext
rect - the text rectangle to draw.
screenPoint - the projected screen point the text relates to.
Returns:
the final draw point for the given rectangle lower left corner or null.

dispose

public void dispose()
Specified by:
dispose in interface Disposable

isCullTextEnabled

public boolean isCullTextEnabled()

render

public void render(DrawContext dc,
                   GeographicText text,
                   Vec4 textPoint)

render

public void render(DrawContext dc,
                   Iterable<GeographicText> text)

setCullTextEnabled

public void setCullTextEnabled(boolean cullText)

NASA World Wind