StringUtils Class Reference

Manipulate and analyze Strings. More...

List of all members.

Static Public Member Functions

static Dimension getStringSize (String textToMeasure, Font displayFont)
 Measures the size of the input string, taking into account the current font and newlines.
static String repeat (String string, int numTimes)
static List< String > splitString (String string, int maxCharsPerLine)
 Splits a string into multiple lines, each with at most maxChars characters.


Detailed Description

Manipulate and analyze Strings.

This software is distributed under the BSD License.

Author:
Ron B Yeh (ronyeh(AT)cs.stanford.edu)

Definition at line 19 of file StringUtils.java.


Member Function Documentation

static Dimension getStringSize ( String  textToMeasure,
Font  displayFont 
) [static]

Measures the size of the input string, taking into account the current font and newlines.

Returns:

Definition at line 26 of file StringUtils.java.

static String repeat ( String  string,
int  numTimes 
) [static]

Parameters:
string 
numTimes 
Returns:
stringstringstringstring.... numTimes over.

Definition at line 51 of file StringUtils.java.

static List<String> splitString ( String  string,
int  maxCharsPerLine 
) [static]

Splits a string into multiple lines, each with at most maxChars characters.

We will try our best to split after spaces.

Parameters:
string 
maxCharsPerLine 
Returns:
a List of Strings representing the lines.

Definition at line 67 of file StringUtils.java.


The documentation for this class was generated from the following file:
Generated on Sat Apr 14 18:21:45 2007 for R3 Paper Toolkit by  doxygen 1.4.7