ponderToolkit.editor.utils
Class Utils
java.lang.Object
|
+--ponderToolkit.editor.utils.Utils
- public class Utils
- extends java.lang.Object
Function: Defines constants etc needed by all classes in the editor
package
|
Constructor Summary |
Utils()
|
|
Method Summary |
static java.lang.String |
createWhiteSpace(int len,
int tabSize)
Creates a string of white space with the specified length. |
static int |
getLeadingWhiteSpace(java.lang.String str)
Returns the number of leading white space characters in the
specified string. |
static int |
getLeadingWhiteSpaceWidth(java.lang.String str,
int tabSize)
Returns the width of the leading white space in the specified
string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
getLeadingWhiteSpace
public static int getLeadingWhiteSpace(java.lang.String str)
- Returns the number of leading white space characters in the
specified string.
getLeadingWhiteSpaceWidth
public static int getLeadingWhiteSpaceWidth(java.lang.String str,
int tabSize)
- Returns the width of the leading white space in the specified
string.
createWhiteSpace
public static java.lang.String createWhiteSpace(int len,
int tabSize)
- Creates a string of white space with the specified length.