|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Todo(target=VERSION_1_1_1, compatibility=BREAK_MINOR, priority=MINOR, description="allow BackgroundPaint to enabled/disable transparency") 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.
Method Summary | |
---|---|
void |
install(BackgroundComponent component)
Informs this paint that is will be used by component . |
void |
paint(BackgroundComponent background,
PaintableComponent paintable,
java.awt.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 . |
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, java.awt.Graphics g)
component
using the graphics context g
. The
exact behavior of this method may depend on the type of component
.PaintableComponent.paintBackground(Graphics)
and
PaintableComponent.paintForeground(Graphics)
:
null
then they will neither paint nor be executed automatically.null
then they paint but will not be executed automatically.paintable
is solid, 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
java.lang.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 |