|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.kobjects.kui.WordWrap
public class WordWrap
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 |
|---|
public WordWrap(Style style,
java.lang.String txt,
int width)
font: - The Font to be used to calculate the character widths.txt: - The text string to be wrapped.width: - The line width.| Method Detail |
|---|
public int getHeight()
public void paint(Graphics g,
int x,
int y,
int textAlign)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||