|
Oracle JEWT 4.2.10 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.bali.ewt.text.WordWrapper
The WordWrapper class implements the TextWrapper interface to wrap a paragraph of text at the last full word that can fit on each line.
TextWrapper
Method Summary | |
static TextWrapper |
getTextWrapper()
Returns the TextWrapper which wraps the MultiLineLabel's text to the nearest word that fits within the wrapping point. |
void |
wrapParagraph(WrapInfo wrapInfo,
java.lang.String text)
Wrap a paragraph of text into one or more lines of text. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static TextWrapper getTextWrapper()
CharacterWrapper.getTextWrapper()
,
NoWrapper.getTextWrapper()
public void wrapParagraph(WrapInfo wrapInfo, java.lang.String text)
wrapParagraph
in interface TextWrapper
wrapInfo
- A WrapInfo interface containing the FontMetrics and wrapping
width to use when wrapping the text. The TextWrapper calls
wrapInfo.addLine() for each wrapped line that it finishestext
- The text that the TextWrapper is to wrap. It is
guaranteed that this text will not contain any carriage returns
TextWrapper
,
WrapInfo
|
Oracle JEWT 4.2.10 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |