borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.model 

ItemPaintSite interface

borland.jbcl.model.ItemPaintSite
   +----borland.jbcl.model.ItemEditSite

About the ItemPaintSite interface

Properties  

Implemented by ButtonControl, DatasetColumnView, FieldControl, ImageControl, TabsetControl, TabsetPanel, ButtonView, ColumnView, FieldView, TabsetView

Classes that implement the ItemPaintSite interface can provide item painters with information about the host container in which the painting occurs. ItemPaintSite has the methods to return the background color, the foreground color, the font, the alignment setting, and the margins for the item being painted.


ItemPaintSite properties

*Read-only properties **Write-only properties

Properties defined in this interface


ItemPaintSite properties

alignment

 public int getAlignment()
Returns the alignment setting for the item being painted. The alignment value returned is one of the alignment variables in jbcl.util.Alignment.

background

 public Color getBackground()
Returns the background color for the item being painted.

font

 public Font getFont()
Returns the font to use for the item being painted.

foreground

 public Color getForeground()
Returns the foreground color for the item being painted.

itemMargins

 public Insets getItemMargins()
Returns the item margins for the item being painted.