Oracle JEWT API Reference
Release 4.2.24.0.0
B12199-01

oracle.bali.ewt.text
Interface TextWrapper

All Known Implementing Classes:
NoWrapper, CharacterWrapper, WordWrapper

public interface TextWrapper

The TextWrapper Interface declares the wrapParagraph method which a TextWrapper implements to wrap a paragraph of text into one or more lines of text. TextWrapper are used for this purpose by the MultiLineLabel.

See Also:
CharacterWrapper, NoWrapper, WordWrapper, WrapInfo, MultiLineLabel

Method Summary
 void wrapParagraph(WrapInfo wrapInfo, java.lang.String text)
          Wrap a paragraph of text into one or more lines of text.
 

Method Detail

wrapParagraph

public void wrapParagraph(WrapInfo wrapInfo,
                          java.lang.String text)
Wrap a paragraph of text into one or more lines of text.

Parameters:
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 finishes
text - The text that the TextWrapper is to wrap. It is guaranteed that this text will not contain any carriage returns

Oracle JEWT 4.2.24

Copyright © [xxxx],2003, Oracle. All Rights Reserved.