Oracle JEWT API Reference
Release 4.2.24.0.0
B12199-01

oracle.bali.ewt.text
Class NoWrapper

java.lang.Object
  |
  +--oracle.bali.ewt.text.NoWrapper
All Implemented Interfaces:
TextWrapper

public final class NoWrapper
extends java.lang.Object
implements TextWrapper

The NoWrapper class implements the TextWrapper interface to never wrap the text it is passed. All of the text will appear on the same line

See Also:
TextWrapper

Constructor Summary
NoWrapper()
           
 
Method Summary
static TextWrapper getTextWrapper()
          Returns the TextWrapper which only wraps the MultiLineLabel's text when a carriage return is encountered.
 void wrapParagraph(WrapInfo wrapInfo, java.lang.String text)
          Wrap a paragraph of text into one line of text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoWrapper

public NoWrapper()
Method Detail

getTextWrapper

public static TextWrapper getTextWrapper()
Returns the TextWrapper which only wraps the MultiLineLabel's text when a carriage return is encountered.

See Also:
CharacterWrapper.getTextWrapper(), WordWrapper.getTextWrapper()

wrapParagraph

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

Specified by:
wrapParagraph in interface TextWrapper
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

See Also:
TextWrapper, WrapInfo

Oracle JEWT 4.2.24

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