|
Ascent Phase Corp. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.ascentphase.suit.TextUtil
Static help methods for text utilities.
| Constructor Summary | |
TextUtil()
|
|
| Method Summary | |
static java.lang.String |
getTruncatedWord(java.lang.String text,
Font f,
int width)
Returns the maximum number of characters within the given word that will fit into the specified width with the given word. |
static java.lang.String |
getWordsWithin(java.lang.String text,
Font f,
int width)
Returns all the words within the given string that will fit in the width specified with the given Font. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TextUtil()
| Method Detail |
public static java.lang.String getWordsWithin(java.lang.String text,
Font f,
int width)
text - the text string.f - the Font to calculate for.width - the width in pixel the words must fit within.
public static java.lang.String getTruncatedWord(java.lang.String text,
Font f,
int width)
text - the text string.f - the Font to calculate for.width - the width in pixel the words must fit within.
|
Ascent Phase Corp. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||