public final class DecorationUtils
extends java.lang.Object
| Constructor and Description |
|---|
DecorationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
fireStatesChanged(javax.swing.JComponent component)
Informs about decoratable state changes.
|
static java.awt.Paint |
getPaint(GradientType type,
java.util.List<GradientColor> colors,
int x1,
int y1,
int x2,
int y2)
Returns gradient paint.
|
static java.lang.String |
toString(boolean top,
boolean left,
boolean bottom,
boolean right)
Returns sides or lines descriptor string representation.
|
public static java.awt.Paint getPaint(GradientType type, java.util.List<GradientColor> colors, int x1, int y1, int x2, int y2)
type - gradient typecolors - gradient colorsx1 - gradient start X coordinatey1 - gradient start Y coordinatex2 - gradient end X coordinatey2 - gradient end Y coordinatepublic static java.lang.String toString(boolean top,
boolean left,
boolean bottom,
boolean right)
top - whether or not top should be paintedleft - whether or not left should be paintedbottom - whether or not bottom should be paintedright - whether or not right should be paintedpublic static void fireStatesChanged(javax.swing.JComponent component)
component - component states changed for