jbcl.view Package
java.lang.Object +----com.borland.jbcl.view.TextItemPainter +----com.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:
alignment
Alignment
constants.
public WrappedTextItemPainter(int alignment, Insets margins)Creates a
WrappedTextItemPainter
component and specifies how the text is aligned and the size of the margins around the text.
Parameters:
alignment
Alignment
constants.
margins
Insets
object.
public WrappedTextItemPainter(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
Insets
object.
alignment
Alignment
constants.
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.