borland Packages  Class Hierarchy  jbcl.view Package  Index 

TextWrapper class

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

About the TextWrapper class

Properties  Methods  

Implements Serializable

The TextWrapper class wraps text to fit into a restricted width. It uses the current locale settings to perform language-smart word wrapping.


TextWrapper properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

TextWrapper methods

Methods implemented in this class

Methods implemented in java.lang.Object


TextWrapper methods

calcSize(java.awt.Graphics)

  protected void calcSize(java.awt.Graphics g)
Calculates the size needed to display the wrapped text.

getSize(java.awt.Graphics)

  public Dimension getSize(java.awt.Graphics g)
Returns the dimensions of the TextWrapper.

paint(java.awt.Graphics, int, int, int, int)

  public void paint(java.awt.Graphics g, int x, int y, int maxWidth, int maxHeight)
Paints the TextWrapper.

Parameters:

g
The Graphics object used for painting.
x
The x-coordinate of the upper-left corner.
y
The y-coordinate of the upper-left corner.
maxWidth
The maximum allowed width for the TextWrapper.
maxHeight
The maximum allowed height for the TextWrapper.