gov.nasa.worldwind.render
Class GeographicTextRenderer
java.lang.Object
gov.nasa.worldwind.render.GeographicTextRenderer
- All Implemented Interfaces:
- Disposable
public class GeographicTextRenderer
- extends Object
- implements Disposable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeographicTextRenderer
public GeographicTextRenderer()
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 DrawContextrect - 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)