jbcl.view Package
java.lang.Object +----com.borland.jbcl.view.ColorItemPainter
Constructors Properties Methods
Implements ItemPainter, Serializable
An item painter that paints the color of the data item passed to it.
public ColorItemPainter()
Constructs a ColorItemPainter
of size 10 pixels by 10 pixels.
public ColorItemPainter(Dimension size)
Constructs a ColorItemPainter
of the specified size.
public Dimension getSize() public void setSize(Dimension s)
The size of the ColorItemPainter
.
protected Color getColor(Object object, Graphics g, ItemPaintSite site)
Returns the color of the specified object.
Parameters:
object
Color
object, an Integer
color value, or a String
color name.
g
site
java.awt.Color.white
.