|
||||||||||
| 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.
| Field Summary | |
|---|---|
static java.awt.GradientPaint |
AERITH
|
static java.awt.GradientPaint |
BLUE_EXPERIENCE
|
static java.awt.GradientPaint |
GRAY
|
static java.awt.GradientPaint |
MAC_OSX
|
static java.awt.GradientPaint |
MAC_OSX_SELECTED
|
static java.awt.GradientPaint |
NIGHT_GRAY
|
static java.awt.GradientPaint |
NIGHT_GRAY_LIGHT
|
static java.awt.GradientPaint |
RED_XP
|
| Method Summary | |
|---|---|
static java.awt.image.BufferedImage |
convertToBufferedImage(java.awt.Image img)
Deprecated. Use GraphicsUtilities.convertToBufferedImage(Image) instead |
static java.awt.image.BufferedImage |
createCompatibleImage(int width,
int height)
Deprecated. (pre-0.9.6) use GraphicsUtilities.createCompatibleImage(int, int) |
static java.awt.image.BufferedImage |
createCompatibleImage(int width,
int height,
int transparency)
Deprecated. (pre-0.9.6) use GraphicsUtilities.createCompatibleImage(int, int) or
GraphicsUtilities.createCompatibleTranslucentImage(int, int) |
static javax.swing.border.Border |
getDefaultBorder()
Deprecated. (pre 0.9.6) no replacement |
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 java.awt.image.BufferedImage |
loadCompatibleImage(java.io.InputStream in)
Deprecated. Use GraphicsUtilities.loadCompatibleImage(InputStream) instead |
static java.awt.image.BufferedImage |
loadCompatibleImage(java.net.URL resource)
Deprecated. (pre-0.9.6) use GraphicsUtilities.loadCompatibleImage(URL) |
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 java.awt.Paint |
resizeGradient(java.awt.Paint p,
int width,
int height)
Resizes a gradient to fill the width and height available. |
static void |
setBackgroundColor(java.awt.Container cont,
java.awt.Color color)
Deprecated. (pre 0.9.6) use SwingXUtilities.setComponentTreeBackground(Component, Color) |
static void |
setFont(java.awt.Container cont,
java.awt.Font font)
Deprecated. (pre 0.9.6) use SwingXUtilities.setComponentTreeFont(Component, Font) |
static void |
setForegroundColor(java.awt.Container cont,
java.awt.Color color)
Deprecated. (pre 0.9.6) use SwingXUtilities.setComponentTreeForeground(Component, Color) |
static java.awt.Shape |
setMergedClip(java.awt.Graphics g,
java.awt.Shape newClip)
Deprecated. (pre-0.9.6) Use GraphicsUtilities.mergeClip(Graphics,Shape) instead |
static java.awt.image.BufferedImage |
toCompatibleImage(java.awt.image.BufferedImage image)
Deprecated. (pre-0.9.6) use GraphicsUtilities.toCompatibleImage(BufferedImage) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.awt.GradientPaint BLUE_EXPERIENCE
public static final java.awt.GradientPaint MAC_OSX_SELECTED
public static final java.awt.GradientPaint MAC_OSX
public static final java.awt.GradientPaint AERITH
public static final java.awt.GradientPaint GRAY
public static final java.awt.GradientPaint RED_XP
public static final java.awt.GradientPaint NIGHT_GRAY
public static final java.awt.GradientPaint NIGHT_GRAY_LIGHT
| Method Detail |
|---|
@Deprecated 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)
@Deprecated
public static void setBackgroundColor(java.awt.Container cont,
java.awt.Color color)
SwingXUtilities.setComponentTreeBackground(Component, Color)
@Deprecated
public static void setForegroundColor(java.awt.Container cont,
java.awt.Color color)
SwingXUtilities.setComponentTreeForeground(Component, Color)
@Deprecated
public static void setFont(java.awt.Container cont,
java.awt.Font font)
SwingXUtilities.setComponentTreeFont(Component, Font)
@Deprecated
public static java.awt.image.BufferedImage createCompatibleImage(int width,
int height)
GraphicsUtilities.createCompatibleImage(int, int)
width - the width of the new BufferedImageheight - the height of the new BufferedImage
@Deprecated
public static java.awt.image.BufferedImage createCompatibleImage(int width,
int height,
int transparency)
GraphicsUtilities.createCompatibleImage(int, int) or
GraphicsUtilities.createCompatibleTranslucentImage(int, int)
width - the width of the new BufferedImageheight - the height of the new BufferedImagetransparency - one of the values in the Transparency interface
@Deprecated public static java.awt.image.BufferedImage convertToBufferedImage(java.awt.Image img)
GraphicsUtilities.convertToBufferedImage(Image) instead
@Deprecated
public static java.awt.image.BufferedImage loadCompatibleImage(java.net.URL resource)
throws java.io.IOException
GraphicsUtilities.loadCompatibleImage(URL)
java.io.IOException
@Deprecated
public static java.awt.image.BufferedImage loadCompatibleImage(java.io.InputStream in)
throws java.io.IOException
GraphicsUtilities.loadCompatibleImage(InputStream) instead
java.io.IOException@Deprecated public static java.awt.image.BufferedImage toCompatibleImage(java.awt.image.BufferedImage image)
GraphicsUtilities.toCompatibleImage(BufferedImage)
@Deprecated
public static java.awt.Shape setMergedClip(java.awt.Graphics g,
java.awt.Shape newClip)
GraphicsUtilities.mergeClip(Graphics,Shape) instead
public static java.awt.Paint resizeGradient(java.awt.Paint p,
int width,
int height)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||