gov.nasa.worldwind.util.tree
Class TreeUtil
java.lang.Object
gov.nasa.worldwind.util.tree.TreeUtil
public class TreeUtil
- extends Object
Utility methods for drawing tree controls.
|
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 |
TreeUtil
public TreeUtil()
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 - GLbounds - Bounds of the rectangle, in GL coordinates.
drawRectWithGradient
public static void drawRectWithGradient(GL2 gl,
Rectangle bounds,
Color color1,
Color color2,
double opacity,
String gradientDirection)