Package gov.nasa.worldwind.util.tree
Class TreeUtil
- java.lang.Object
-
- gov.nasa.worldwind.util.tree.TreeUtil
-
public class TreeUtil extends java.lang.Object
Utility methods for drawing tree controls.
-
-
Constructor Summary
Constructors Constructor Description TreeUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
drawPickableRect(DrawContext dc, PickSupport pickSupport, java.lang.Object pickedObject, java.awt.Rectangle bounds)
Draw a rectangle in a unique pick color, and associate the color with a pickable object.static void
drawRect(com.jogamp.opengl.GL2 gl, java.awt.Rectangle bounds)
Draw a rectangle.static void
drawRectWithGradient(com.jogamp.opengl.GL2 gl, java.awt.Rectangle bounds, java.awt.Color color1, java.awt.Color color2, double opacity, java.lang.String gradientDirection)
-
-
-
Method Detail
-
drawPickableRect
public static void drawPickableRect(DrawContext dc, PickSupport pickSupport, java.lang.Object pickedObject, java.awt.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(com.jogamp.opengl.GL2 gl, java.awt.Rectangle bounds)
Draw a rectangle.- Parameters:
gl
- GLbounds
- Bounds of the rectangle, in GL coordinates.
-
drawRectWithGradient
public static void drawRectWithGradient(com.jogamp.opengl.GL2 gl, java.awt.Rectangle bounds, java.awt.Color color1, java.awt.Color color2, double opacity, java.lang.String gradientDirection)
-
-