|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.util.PaintUtils
public class PaintUtils
A collection of utilties for painting visual effects.
Field Summary | |
---|---|
static GradientPaint |
AERITH
|
static GradientPaint |
BLUE_EXPERIENCE
|
static GradientPaint |
GRAY
|
static GradientPaint |
MAC_OSX
|
static GradientPaint |
MAC_OSX_SELECTED
|
static GradientPaint |
NIGHT_GRAY
|
static GradientPaint |
NIGHT_GRAY_LIGHT
|
static GradientPaint |
RED_XP
|
Method Summary | |
---|---|
static Rectangle |
getTextBounds(Graphics g,
JLabel label)
Returns the bounds that the text of a label will be drawn into. |
static void |
paintGradient(Graphics g,
JComponent comp,
Color color1,
Color color2)
Paints a top to bottom gradient fill over the component bounds from color1 to color2. |
static Paint |
resizeGradient(Paint p,
int width,
int height)
Resizes a gradient to fill the width and height available. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final GradientPaint BLUE_EXPERIENCE
public static final GradientPaint MAC_OSX_SELECTED
public static final GradientPaint MAC_OSX
public static final GradientPaint AERITH
public static final GradientPaint GRAY
public static final GradientPaint RED_XP
public static final GradientPaint NIGHT_GRAY
public static final GradientPaint NIGHT_GRAY_LIGHT
Method Detail |
---|
public static Rectangle getTextBounds(Graphics g, JLabel label)
public static void paintGradient(Graphics g, JComponent comp, Color color1, Color color2)
public static Paint resizeGradient(Paint p, int width, int height)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |