com.futureshocked.debug
Class Indenter
java.lang.Object
com.futureshocked.debug.Indenter
public class Indenter
- extends java.lang.Object
Simple class that will generate a certain amount of spaces for indentention.
Since scaleFactor is static this class is probably not useful if you
wish to have different scale factors being used for indenting at the same
time, however it's worth it to not have to bother creating a new
instance.
Field Summary |
static int |
scaleFactor
Scale factor - number of spaces returned is depth * scaleFactor |
static java.lang.String |
spaces
Just a bunch of spaces... |
Method Summary |
static java.lang.String |
indent(int depth)
Returns a String full of spaces, based off of depth. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
spaces
public static java.lang.String spaces
- Just a bunch of spaces...
scaleFactor
public static int scaleFactor
- Scale factor - number of spaces returned is depth * scaleFactor
Indenter
public Indenter()
indent
public static java.lang.String indent(int depth)
- Returns a String full of spaces, based off of depth.
- Parameters:
depth
- How far to indent.
- Returns:
- String object with the appropriate number of spaces.