adaptj.util.text
Class ColumnTextFormatter

java.lang.Object
  |
  +--adaptj.util.text.ColumnTextFormatter

public class ColumnTextFormatter
extends java.lang.Object


Field Summary
static int DEFAULT_WIDTH
           
static int SEPARATOR_WIDTH
           
 
Constructor Summary
ColumnTextFormatter()
           
ColumnTextFormatter(boolean drawSeparator)
           
ColumnTextFormatter(int columnWidth)
           
ColumnTextFormatter(int columnWidth, boolean drawSeparator)
           
ColumnTextFormatter(int leftWidth, int rightWidth)
           
ColumnTextFormatter(int leftWidth, int rightWidth, boolean drawSeparator)
           
 
Method Summary
 Strings format(java.lang.String left, java.lang.String right)
           
static java.lang.String getBlankString(int width)
           
static java.lang.String patchStringToWidth(java.lang.String s, int width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_WIDTH

public static final int DEFAULT_WIDTH
See Also:
Constant Field Values

SEPARATOR_WIDTH

public static final int SEPARATOR_WIDTH
See Also:
Constant Field Values
Constructor Detail

ColumnTextFormatter

public ColumnTextFormatter()

ColumnTextFormatter

public ColumnTextFormatter(boolean drawSeparator)

ColumnTextFormatter

public ColumnTextFormatter(int columnWidth)

ColumnTextFormatter

public ColumnTextFormatter(int columnWidth,
                           boolean drawSeparator)

ColumnTextFormatter

public ColumnTextFormatter(int leftWidth,
                           int rightWidth)

ColumnTextFormatter

public ColumnTextFormatter(int leftWidth,
                           int rightWidth,
                           boolean drawSeparator)
Method Detail

format

public Strings format(java.lang.String left,
                      java.lang.String right)

getBlankString

public static java.lang.String getBlankString(int width)

patchStringToWidth

public static java.lang.String patchStringToWidth(java.lang.String s,
                                                  int width)