public class TreeUtil extends Object
| Constructor and Description |
|---|
TreeUtil() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static void drawPickableRect(DrawContext dc, PickSupport pickSupport, Object pickedObject, 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(GL2 gl, Rectangle bounds)
gl - GLbounds - Bounds of the rectangle, in GL coordinates.