NASA World Wind

gov.nasa.worldwind.util.tree
Class TreeUtil

java.lang.Object
  extended by gov.nasa.worldwind.util.tree.TreeUtil

public class TreeUtil
extends Object

Utility methods for drawing tree controls.


Constructor Summary
TreeUtil()
           
 
Method Summary
static void drawPickableRect(DrawContext dc, PickSupport pickSupport, Object pickedObject, Rectangle bounds)
          Draw a rectangle in a unique pick color, and associate the color with a pickable object.
static void drawRect(GL2 gl, Rectangle bounds)
          Draw a rectangle.
static void drawRectWithGradient(GL2 gl, Rectangle bounds, Color color1, Color color2, double opacity, String gradientDirection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeUtil

public TreeUtil()
Method Detail

drawPickableRect

public static void drawPickableRect(DrawContext dc,
                                    PickSupport pickSupport,
                                    Object pickedObject,
                                    Rectangle bounds)
Draw a rectangle in a unique pick color, and associate the color with a pickable object.

Parameters:
dc - Draw context.
pickSupport - Pick support.
pickedObject - Object to associate with pickable rectangle.
bounds - Bounds of the pickable rectangle.

drawRect

public static void drawRect(GL2 gl,
                            Rectangle bounds)
Draw a rectangle.

Parameters:
gl - GL
bounds - Bounds of the rectangle, in GL coordinates.

drawRectWithGradient

public static void drawRectWithGradient(GL2 gl,
                                        Rectangle bounds,
                                        Color color1,
                                        Color color2,
                                        double opacity,
                                        String gradientDirection)

NASA World Wind