|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BackgroundPaint
A BackgroundPaint
is used to paint the background of various Component
s of
this framework.
Please note that some items provided by a DockTheme
do not use a BackgroundPaint
because they already paint their background in a specific way.
Field Summary | |
---|---|
static BackgroundPaint |
SOLID
Simple BackgroundPaint that will attempt to make any background opaque (not transparent) |
static BackgroundPaint |
TRANSPARENT
Simple BackgroundPaint that will attempt to make any background transparent |
Method Summary | |
---|---|
void |
install(BackgroundComponent component)
Informs this paint that is will be used by component . |
void |
paint(BackgroundComponent background,
PaintableComponent paintable,
Graphics g)
Paints the background component using the graphics context g . |
void |
uninstall(BackgroundComponent component)
Informs this paint that it is no longer used by component . |
Field Detail |
---|
static final BackgroundPaint TRANSPARENT
BackgroundPaint
that will attempt to make any background transparent
static final BackgroundPaint SOLID
BackgroundPaint
that will attempt to make any background opaque (not transparent)
Method Detail |
---|
void install(BackgroundComponent component)
component
.
component
- the component that is going to use this paint, not null
void uninstall(BackgroundComponent component)
component
.
component
- the component that no longer uses this paint, not null
void paint(BackgroundComponent background, PaintableComponent paintable, Graphics g)
component
using the graphics context g
. The
exact behavior of this method may depend on the type of component
.paint
-methods of PaintableComponent
,
for example PaintableComponent.paintBackground(Graphics)
:
null
then they will neither paint nor be executed automatically.null
then they paint but will not be executed automatically.paintable
is not transparent
,
then the entire background must be painted (every pixel must be filled).Component
s) will almost certainly not work. The framework uses special transparent panels to do that.JComponent.isOpaque()
.
background
- the component to paint, is installed on this paint, not null
paintable
- the part of the component that is to be painted, may be a child-Component
g
- the graphics context to use
IllegalArgumentException
- if component
is not equal to background
or not
a child of background
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |