org.kobjects.kui
Class WordWrap

java.lang.Object
  extended by org.kobjects.kui.WordWrap

public class WordWrap
extends java.lang.Object

A class supporting word wrap for MIDP.


Constructor Summary
WordWrap(Style style, java.lang.String txt, int width)
          Initializes the WordWrap object with the given Font, the text string to be wrapped, and the target width.
 
Method Summary
 int getHeight()
           
 void paint(Graphics g, int x, int y, int textAlign)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordWrap

public WordWrap(Style style,
                java.lang.String txt,
                int width)
Initializes the WordWrap object with the given Font, the text string to be wrapped, and the target width.

Parameters:
font: - The Font to be used to calculate the character widths.
txt: - The text string to be wrapped.
width: - The line width.
Method Detail

getHeight

public int getHeight()

paint

public void paint(Graphics g,
                  int x,
                  int y,
                  int textAlign)