|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
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.
Method Summary | |
---|---|
static BufferedImage |
convertToBufferedImage(Image img)
|
static BufferedImage |
createCompatibleImage(int width,
int height)
|
static BufferedImage |
createCompatibleImage(int width,
int height,
int transparency)
|
static Border |
getDefaultBorder()
|
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 void |
setBackgroundColor(Container cont,
Color color)
Sets the background color for a containment hierarchy. |
static void |
setFont(Container cont,
Font font)
|
static void |
setForegroundColor(Container cont,
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 |
Method Detail |
---|
public static Border getDefaultBorder()
public static Rectangle getTextBounds(Graphics g, JLabel label)
public static void paintGradient(Graphics g, JComponent comp, Color color1, Color color2)
public static void setBackgroundColor(Container cont, Color color)
public static void setForegroundColor(Container cont, Color color)
public static void setFont(Container cont, Font font)
public static BufferedImage createCompatibleImage(int width, int height)
width
- the width of the new BufferedImageheight
- the height of the new BufferedImage
public static BufferedImage createCompatibleImage(int width, int height, int transparency)
width
- the width of the new BufferedImageheight
- the height of the new BufferedImagetransparency
- one of the values in the Transparency interface
public static BufferedImage convertToBufferedImage(Image img)
|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |