borland Packages Class Hierarchy jbcl.model Package Index
borland.jbcl.model.ItemPaintSite +----borland.jbcl.model.CustomPaintSite
Properties Methods
Implemented by CustomItemEditor, CustomItemPainter
Classes that implement the CustomPaintSite interface can provide custom item painters and painters with information about the host container in which the painting occurs. CustomPaintSite has the methods to return the background color, the foreground color, the font, the alignment setting, the margins for the item being painted.
public void setAlignment(int alignment)Determines the alignment of the item being painted. Specify alignment using the borland.jbcl.util.Alignment variables.
public void setBackground(java.awt.Color color)Determines the background color for the item being painted.
public void setFont(java.awt.Font font)Determines the font to use for the item being painted.
public void setForeground(java.awt.Color color)Determines the foreground color for the item being painted.
public void setItemMargins(java.awt.Insets margins)Determines the margins around the item being painted.
public void reset()Resets the properties of CustomPaintSite to their default values.