jbcl.view Package
java.lang.Object +----com.borland.jbcl.view.TextWrapper
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.
protected void calcSize(Graphics g)Calculates the size needed to display the wrapped text.
public Dimension getSize(Graphics g)Returns the dimensions of the
TextWrapper
.
public void paint(Graphics g, int x, int y, int maxWidth, int maxHeight)Paints the
TextWrapper
.
Parameters:
g
x
y
maxWidth
TextWrapper
.
maxHeight
TextWrapper
.