borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.view
java.lang.Object +----borland.jbcl.view.ColorItemPainter
Constructors Properties Methods
Implements ItemPainter
An item painter that paints the color of the data item passed to it. For model-view controls.
public ColorItemPainter()
Constructs a ColorItemPainter of size 10 pixels by 10 pixels.
public ColorItemPainter(java.awt.Dimension size)
Constructs a ColorItemPainter of the specified size.
public Dimension getSize() public void setSize(java.awt.Dimension s)
The size of the ColorItemPainter.
protected Color getColor(java.lang.Object object, java.awt.Graphics g, borland.jbcl.model.ItemPaintSite site)
Returns the color of the specified object.
Parameters: