com.sun.lwuit.painter
Class BackgroundPainter

java.lang.Object
  extended by com.sun.lwuit.painter.BackgroundPainter
All Implemented Interfaces:
Painter

public class BackgroundPainter
extends java.lang.Object
implements Painter

A painter that draws the background of a component based on its style


Constructor Summary
BackgroundPainter(Component parent)
          Construct a background painter for the given component
 
Method Summary
 void paint(Graphics g, Rectangle rect)
          Draws inside the given rectangle clipping area.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackgroundPainter

public BackgroundPainter(Component parent)
Construct a background painter for the given component

Parameters:
parent - the parent component
Method Detail

paint

public void paint(Graphics g,
                  Rectangle rect)
Description copied from interface: Painter
Draws inside the given rectangle clipping area.

Specified by:
paint in interface Painter
Parameters:
g - the Graphics object
rect - the given rectangle cliping area