public class BackgroundPainter
- Object
- BackgroundPainter
ImplementsPainter
A painter that draws the background of a component based on its style
Constructors
public BackgroundPainter(Component parent) | Construct a background painter for the given component |
Methods
public void paint(Graphics g, Rectangle rect) | Draws inside the given rectangle clipping area. |
Inherited methods
Constructor details
BackgroundPainter
public BackgroundPainter(Component parent)Construct a background painter for the given component
Parameters
parentComponent- the parent component
Method details
paint
public void paint(Graphics g, Rectangle rect)Draws inside the given rectangle clipping area.
Parameters
gGraphics- the
Graphicsobject rectRectangle- the given rectangle cliping area