borland Packages Class Hierarchy jbcl.view Package Index
java.lang.Object +----borland.jbcl.view.TextItemPainter +----borland.jbcl.view.WrappedTextItemPainter
Variables Constructors Properties Methods
Implements ItemPainter, Serializable
The WrappedTextItemPainter class is a text item painter that wraps long lines.
protected int minWidth
public WrappedTextItemPainter()Creates a WrappedTextItemPainter component.
public WrappedTextItemPainter(int alignment)Creates a WrappedTextItemPainter component and specifies how the text is aligned.
Parameters:
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:
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:
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.