borland Packages  Class Hierarchy  jbcl.view Package  Index 

WrappedTextItemPainter component

java.lang.Object
   +----borland.jbcl.view.TextItemPainter
           +----borland.jbcl.view.WrappedTextItemPainter

About the WrappedTextItemPainter component

Variables  Constructors  Properties  Methods  

Implements ItemPainter, Serializable

The WrappedTextItemPainter class is a text item painter that wraps long lines.


WrappedTextItemPainter variables

Variables implemented in this class

Variables implemented in borland.jbcl.view.TextItemPainter

WrappedTextItemPainter constructors

WrappedTextItemPainter properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.view.TextItemPainter

Properties implemented in java.lang.Object

WrappedTextItemPainter methods

Methods implemented in this class

Methods implemented in borland.jbcl.view.TextItemPainter

Methods implemented in java.lang.Object


WrappedTextItemPainter variables

minWidth

  protected int minWidth

WrappedTextItemPainter constructors

WrappedTextItemPainter()

  public WrappedTextItemPainter()
Creates a WrappedTextItemPainter component.

WrappedTextItemPainter(int)

  public WrappedTextItemPainter(int alignment)
Creates a WrappedTextItemPainter component and specifies how the text is aligned.

Parameters:

alignment
One of the Alignment constants.

WrappedTextItemPainter(int, java.awt.Insets)

  public WrappedTextItemPainter(int alignment, java.awt.Insets margins)
Creates a WrappedTextItemPainter component and specifies how the text is aligned and the size of the margins around the text.

Parameters:

alignment
One of the Alignment constants.
margins
An Insets object.

WrappedTextItemPainter(java.awt.Insets, int, int)

  public WrappedTextItemPainter(java.awt.Insets margins, int alignment, int minWidth)
Creates a WrappedTextItemPainter component that specifies the size of the margins around the text, the alignment of the text, and the minimum width of the painter.

Parameters:

margins
An Insets object.
alignment
One of the Alignment constants.
minWidth
The minimum width of the painter.

WrappedTextItemPainter properties

minWidth

 public int getMinWidth()
 public void setMinWidth(int minWidth)
The minWidth property defines a minimum width (in pixels) to stop wrapping the text. If none is set (or -1), the entire rectangle passed in the paint() method will be used.