borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.view
java.lang.Object +----borland.jbcl.view.ImageItemPainter +----borland.jbcl.view.ImageArrayItemPainter +----borland.jbcl.view.StateImageItemPainter
Variables Constructors Properties Methods
Implements ItemPainter
Paints image items differently, depending upon the data item's state. States are registered with the item painter.
Image/state pairs are registered in LIFO ordering (last one checked first). Checking succeeds if the states are equal (so that 0 matches) or their bitwise AND is not zero. The last registered image with state 0 is considered the default image, and is returned if no other images match.
public StateImageItemPainter(java.awt.Component component)
public StateImageItemPainter(java.awt.Component component, int alignment)
public void register(int state, java.awt.Image image)
Calls ImageArrayItemPainter.find(), passing the image.
If the image isn't found, calls ImageArrayItemPainter.add(), passing the image.
Calls StateItemPainter.register(), sending the state and image as parameters.