anecho.gui
Class AbstractMessageFormat

java.lang.Object
  extended by anecho.gui.AbstractMessageFormat

public abstract class AbstractMessageFormat
extends java.lang.Object

Simple line formatting methods


Method Summary
static java.lang.String wrap(java.lang.String input)
          Wrap the input we're given at the interval suggested by standWrap
static java.lang.String wrap(java.lang.String input, int len)
          Take the input we're given and wrap at the user-defined intervals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

wrap

public static java.lang.String wrap(java.lang.String input)
Wrap the input we're given at the interval suggested by standWrap

Parameters:
input - The string to be modified by the line wrap.
Returns:
The new string that contains the extra new-line escapes.

wrap

public static java.lang.String wrap(java.lang.String input,
                                    int len)
Take the input we're given and wrap at the user-defined intervals

Parameters:
input - The string to be modified by the line wrap.
len - The maximum number of characters per line
Returns:
The new string that contains the extra new-line escapes.