borland Packages  Class Hierarchy  jbcl.view Package  Index 

ImageItemPainter component

java.lang.Object
   +----borland.jbcl.view.ImageItemPainter
           +----borland.jbcl.view.ImageArrayItemPainter

About the ImageItemPainter component

Variables  Constructors  Properties  Methods  

Implements ItemPainter, Serializable

The ImageItemPainter class paints an image as an item in a control. For example, to represent a file system in a tree control, this class provides the functionality to paint an image for a folder.


ImageItemPainter variables

Variables implemented in this class

ImageItemPainter constructors

ImageItemPainter properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

ImageItemPainter methods

Methods implemented in this class

Methods implemented in java.lang.Object


ImageItemPainter variables

alignment

  protected int alignment

component

  protected Component component

genDisabledImage

  protected boolean genDisabledImage

paintBackground

  protected boolean paintBackground

streamResetError

  protected boolean streamResetError

ImageItemPainter constructors

ImageItemPainter()

  public ImageItemPainter()
Creates an ImageItemPainter component.

ImageItemPainter(java.awt.Component)

  public ImageItemPainter(java.awt.Component component)
Constructs an ImageItemPainter with the specified image to be painted. The alignment used is Alignment.VSTRETCH | Alignment.HSTRETCH.

Parameters:

component
The image to be painted.

ImageItemPainter(java.awt.Component, int)

  public ImageItemPainter(java.awt.Component component, int alignment)
Constructs an ImageItemPainter with the specified image to be painted and the specified alignment.

Parameters:

component
The image to be painted.
alignment
Use the util.Alignment constants to align the image.

ImageItemPainter(java.awt.Component, int, boolean)

  public ImageItemPainter(java.awt.Component component, int alignment, boolean paintBackground)
Constructs an ImageItemPainter with the specified image to be painted and the specified alignment. The value of the paintBackground parameter determines the background is painted first.

Parameters:

component
The image to be painted.
alignment
Use the util.Alignment constants to align the image.
paintBackground
If true, the background is filled in before the image is painted.

ImageItemPainter properties

alignment

 public int getAlignment()
 public void setAlignment(int alignment)
Determines the alignment of the ImageItemPainter. Use the util.Alignment constants to specify an alignment value.

genDisabledImage

 public boolean isGenDisabledImage()
 public void setGenDisabledImage(boolean genDisabledImage)
The genDisabledImage property determines whether a disabled image is automatically generated when the ItemPainter.DISABLED state is set.

paintBackground

 public boolean isPaintBackground()
 public void setPaintBackground(boolean paintBackground)
Determines whether the background is filled before drawing the image in the paint() method.

ImageItemPainter methods

getImage(java.lang.Object, int)

  protected Image getImage(java.lang.Object data, int state)
An internal method.