|
Oracle JEWT 4.2.10 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The WrapInfo Interface declares the methods used by TextWrapper's when wrapping text.
Clients should ignore this interface.
TextWrapper
Method Summary | |
boolean |
addLine(java.lang.String text,
int startOfLine,
int endOfLine)
The textWrapper calls this method to add a line of wrappedText to the WrapInfo. |
java.awt.FontMetrics |
getFontMetrics()
Returns the FontMetrics the TextWrapper should use when measuring text. |
java.util.Locale |
getLocale()
Returns the locale to use when wrapping text. |
int |
getWrapWidth()
Returns the wrapping point at which the TextWrapper should wrap the text. |
boolean |
isCalculatingPreferred()
Returns true if the TextWrapper should wrap optimally, false if it should try to force the words to fit in the wrap width. |
Method Detail |
public int getWrapWidth()
public java.awt.FontMetrics getFontMetrics()
public java.util.Locale getLocale()
public boolean addLine(java.lang.String text, int startOfLine, int endOfLine)
text
- the text being wrappedstartOfLine
- the index of the start of the next lineendOfLine
- the index of the end of the next linepublic boolean isCalculatingPreferred()
|
Oracle JEWT 4.2.10 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |