borland Packages Class Hierarchy jbcl.view Package Index
ColorItemPainter component
java.lang.Object
+----borland.jbcl.view.ColorItemPainter
About the ColorItemPainter component
Constructors Properties Methods
Implements ItemPainter, Serializable
An item painter that paints the color of the data item passed to it.
ColorItemPainter constructors
ColorItemPainter properties
*Read-only properties **Write-only properties
Properties implemented in this class
ColorItemPainter methods
Methods implemented in this class
ColorItemPainter constructors
ColorItemPainter()
public ColorItemPainter()
Constructs a ColorItemPainter of size 10 pixels by 10 pixels.
ColorItemPainter(java.awt.Dimension)
public ColorItemPainter(java.awt.Dimension size)
Constructs a ColorItemPainter of the specified size.
ColorItemPainter properties
size
public Dimension getSize()
public void setSize(java.awt.Dimension s)
The size of the ColorItemPainter.
ColorItemPainter methods
getColor(java.lang.Object, java.awt.Graphics, borland.jbcl.model.ItemPaintSite)
protected Color getColor(java.lang.Object object, java.awt.Graphics g, borland.jbcl.model.ItemPaintSite site)
Returns the color of the specified object.
Parameters:
- object
- The object for which to retrieve the color. This can be a Color object, an Integer color value, or a String color name.
- g
- The graphics context.
- site
- The region of the window to be painted. If null, the color defaults to java.awt.Color.white.