|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.hci.r3.util.StringUtils
public class StringUtils
Manipulate and analyze Strings.
This software is distributed under the BSD License.
Constructor Summary | |
---|---|
StringUtils()
|
Method Summary | |
---|---|
static java.awt.Dimension |
getStringSize(java.lang.String textToMeasure,
java.awt.Font displayFont)
Measures the size of the input string, taking into account the current font and newlines. |
static java.lang.String |
repeat(java.lang.String string,
int numTimes)
|
static java.util.List<java.lang.String> |
splitString(java.lang.String string,
int maxCharsPerLine)
Splits a string into multiple lines, each with at most maxChars characters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringUtils()
Method Detail |
---|
public static java.awt.Dimension getStringSize(java.lang.String textToMeasure, java.awt.Font displayFont)
public static java.lang.String repeat(java.lang.String string, int numTimes)
string
- numTimes
-
public static java.util.List<java.lang.String> splitString(java.lang.String string, int maxCharsPerLine)
string
- maxCharsPerLine
-
|
Copyright 2006 Stanford University | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |