NASA World Wind

gov.nasa.worldwind.examples.util
Class ToolTip

java.lang.Object
  extended by gov.nasa.worldwind.examples.util.ToolTip
All Implemented Interfaces:
Pickable, OrderedRenderable, Renderable

public class ToolTip
extends Object
implements OrderedRenderable


Constructor Summary
ToolTip(String text, int x, int y)
           
 
Method Summary
protected  void doRender(DrawContext dc)
           
protected  void drawToolTip(DrawContext dc, String text, int x, int y)
           
 double getDistanceFromEye()
           
 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
 

Constructor Detail

ToolTip

public ToolTip(String text,
               int x,
               int y)
Method Detail

doRender

protected void doRender(DrawContext dc)

drawToolTip

protected void drawToolTip(DrawContext dc,
                           String text,
                           int x,
                           int y)

getDistanceFromEye

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

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