|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.PaintUtils
public class PaintUtils
A collection of utilties for painting visual effects.
Constructor Summary | |
---|---|
PaintUtils()
|
Method Summary | |
---|---|
static javax.swing.border.Border |
getDefaultBorder()
|
static java.awt.Rectangle |
getTextBounds(java.awt.Graphics g,
javax.swing.JLabel label)
Returns the bounds that the text of a label will be drawn into. |
static void |
paintGradient(java.awt.Graphics g,
javax.swing.JComponent comp,
java.awt.Color color1,
java.awt.Color color2)
Paints a top to bottom gradient fill over the component bounds from color1 to color2. |
static void |
setBackgroundColor(java.awt.Container cont,
java.awt.Color color)
Sets the background color for a containment hierarchy. |
static void |
setFont(java.awt.Container cont,
java.awt.Font font)
|
static void |
setForegroundColor(java.awt.Container cont,
java.awt.Color color)
Sets the foreground color for a containment hierarchy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PaintUtils()
Method Detail |
---|
public static javax.swing.border.Border getDefaultBorder()
public static java.awt.Rectangle getTextBounds(java.awt.Graphics g, javax.swing.JLabel label)
public static void paintGradient(java.awt.Graphics g, javax.swing.JComponent comp, java.awt.Color color1, java.awt.Color color2)
public static void setBackgroundColor(java.awt.Container cont, java.awt.Color color)
public static void setForegroundColor(java.awt.Container cont, java.awt.Color color)
public static void setFont(java.awt.Container cont, java.awt.Font font)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |