public class TreeUtil
extends java.lang.Object
| Constructor and Description |
|---|
TreeUtil() |
| Modifier and Type | Method and 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) |
public static void drawPickableRect(DrawContext dc, PickSupport pickSupport, java.lang.Object pickedObject, java.awt.Rectangle bounds)
dc - Draw context.pickSupport - Pick support.pickedObject - Object to associate with pickable rectangle.bounds - Bounds of the pickable rectangle.public static void drawRect(com.jogamp.opengl.GL2 gl,
java.awt.Rectangle bounds)
gl - GLbounds - Bounds of the rectangle, in GL coordinates.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)