borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.model
borland.jbcl.model.ItemPainter
Variables Methods
Implemented by BorderItemPainter, ButtonItemPainter, ColorItemPainter, CompositeItemPainter, FocusableItemPainter, ImageArrayItemPainter, ImageButtonItemPainter, ImageItemPainter, SelectableTextItemPainter, StateImageItemPainter, StateItemPainter, TextItemPainter, WrappedTextItemPainter
The ItemPainter interface defines a single item painter for painting a data item.
public static final int DEFAULT = 0x0000This is the default state for the item.
public static final int DISABLED = 0x0001Used to indicate that the item is disabled and should therefore appear dimmed.
public static final int FOCUSED = 0x0002Used to indicate that the item has the input focus.
public static final int INACTIVE = 0x0020Used to indicate the item's owning window is not focused and is therefore inactive.
public static final int INDETERMINATE = 0x0008Used to indicate the item is in a unknown selected state. This setting overrides the selected state.
public static final int OPENED = 0x0010Used to indicate that the item's contents are open. If the contents are not opened, then they are closed.
public static final int SELECTED = 0x0004Used to indicate if the item is selected.
public Dimension getPreferredSize(java.lang.Object data, java.awt.Graphics graphics, int state, borland.jbcl.model.ItemPaintSite site)Returns the preferred size of the ItemPainter object as a Dimension object.
Parameters:
public void paint(java.lang.Object data, java.awt.Graphics graphics, java.awt.Rectangle bounds, int state, borland.jbcl.model.ItemPaintSite site)Paints the data object within a bounding rectangle, using the passed Graphics object to paint in and the state parameter to specify the state of the data item.
Parameters: