public interface BackgroundPaint
BackgroundPaint is used to paint the background of various Components of
this framework.DockTheme do not use a BackgroundPaint
because they already paint their background in a specific way.| Modifier and Type | Field and Description |
|---|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
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. |
static final BackgroundPaint TRANSPARENT
BackgroundPaint that will attempt to make any background transparentstatic final BackgroundPaint SOLID
BackgroundPaint that will attempt to make any background opaque (not transparent)void install(BackgroundComponent component)
component.component - the component that is going to use this paint, not nullvoid uninstall(BackgroundComponent component)
component.component - the component that no longer uses this paint, not nullvoid 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).Components) 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 nullpaintable - the part of the component that is to be painted, may be a child-Componentg - the graphics context to useIllegalArgumentException - if component is not equal to background or not
a child of backgroundCopyright © 2017 Docking Frames. All rights reserved.