borland Packages  Class Hierarchy  jbcl.model Package  Index 

ItemPaintSite interface

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

About the ItemPaintSite interface

Properties  

Implemented by ButtonControl, DatasetColumnView, FieldControl, ImageControl, TabsetControl, TabsetPanel, ButtonView, ColumnView, CustomItemEditor, CustomItemPainter, DataToolTip, FieldView, HeaderView, SelectableItemPainter, SelectableTextItemPainter, 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, the margins for the item being painted, and transparent state.


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.

siteComponent

 public Component getSiteComponent()
Returns the component representing the ItemPaintSite.

transparent

 public boolean isTransparent()
The transparent state of the host container. If transparent is true, the container is transparent; otherwise, the container is opaque.