borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.view 

CompositeItemPainter class

java.lang.Object
   +----borland.jbcl.view.CompositeItemPainter

About the CompositeItemPainter class

Constructors  Properties  Methods  

Implements ItemPainter

The ItemPainter class paints items in a control, for items that have both an image and a string. It is constructed with an ImageItemPainter and a TextItemPainter.

See also CompositeItemEditor.


CompositeItemPainter constructors

CompositeItemPainter properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

CompositeItemPainter methods

Methods implemented in this class

Methods implemented in java.lang.Object


CompositeItemPainter constructors

CompositeItemPainter(borland.jbcl.model.ItemPainter, borland.jbcl.model.ItemPainter)

  public CompositeItemPainter(borland.jbcl.model.ItemPainter firstPainter, borland.jbcl.model.ItemPainter secondPainter)

CompositeItemPainter(borland.jbcl.model.ItemPainter, borland.jbcl.model.ItemPainter, int)

  public CompositeItemPainter(borland.jbcl.model.ItemPainter firstPainter, borland.jbcl.model.ItemPainter secondPainter, int orientation)

CompositeItemPainter(borland.jbcl.model.ItemPainter, borland.jbcl.model.ItemPainter, int, int)

  public CompositeItemPainter(borland.jbcl.model.ItemPainter firstPainter, borland.jbcl.model.ItemPainter secondPainter, int orientation, int gap)

CompositeItemPainter properties

orientation

 public int getOrientation()
 public void setOrientation(int o)

CompositeItemPainter methods

calculateRects(java.lang.Object, java.awt.Graphics, java.awt.Rectangle, int, borland.jbcl.model.ItemPaintSite, java.awt.Rectangle, java.awt.Rectangle)

  public void calculateRects(java.lang.Object object, java.awt.Graphics graphics, java.awt.Rectangle rect, int state, borland.jbcl.model.ItemPaintSite site, java.awt.Rectangle rectFirst, java.awt.Rectangle rectSecond)
Uses the passed paint information (same parameters to paint) to calculate the ItemPainter rectangles, and fills in the passed rectangle's values.

Parameters:

object
The data object to use for calculations.
graphics
The Graphics object to use for calculations.
rect
The bounding Rectangle to use for calculations.
state
The current view state of the item.
rectFirst
The calculated rectangle of the first ItemPainter (filled in).
rectSecond
The calculated rectangle of the second ItemPainter (filled in).