public class BackgroundPaintingUtils
extends java.lang.Object
Constructor | Description |
---|---|
BackgroundPaintingUtils() |
Modifier and Type | Method | Description |
---|---|---|
static void |
fillAndWatermark(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Color fillColor,
java.awt.Rectangle rect) |
Updates the background of the specified component on the specified
graphic context in the specified rectangle.
|
static void |
update(java.awt.Graphics g,
java.awt.Component c,
boolean force) |
Updates the background of the specified component on the specified
graphic context.
|
static void |
update(java.awt.Graphics g,
java.awt.Component c,
boolean force,
DecorationAreaType decorationType) |
Updates the background of the specified component on the specified
graphic context.
|
static void |
updateIfOpaque(java.awt.Graphics g,
java.awt.Component c) |
Updates the background of the specified component on the specified
graphic context.
|
public static void updateIfOpaque(java.awt.Graphics g, java.awt.Component c)
g
- Graphic context.c
- Component.public static void update(java.awt.Graphics g, java.awt.Component c, boolean force)
force
parameter is false
and at least one of
the following conditions holds:
g
- Graphic context.c
- Component.force
- If true
, the painting of background is enforced.public static void update(java.awt.Graphics g, java.awt.Component c, boolean force, DecorationAreaType decorationType)
force
parameter is false
and at least one of
the following conditions holds:
g
- Graphic context.c
- Component.force
- If true
, the painting of background is enforced.decorationType
- The decoration type to use. A null
value will result in
the component being asked.public static void fillAndWatermark(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Color fillColor, java.awt.Rectangle rect)
g
- Graphic context.c
- Component.fillColor
- Fill color.rect
- The rectangle to fill.