public class TextFormat extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DIALOG_WRAP |
static int |
TOOLTIP_WRAP |
Constructor and Description |
---|
TextFormat() |
Modifier and Type | Method and Description |
---|---|
static String |
dialog(String msg)
Emit html, suitably line-wrapped and formatted for a dialog.
|
static String |
tooltip(String tip)
Emit html, suitably line-wrapped and formatted for a tool tip.
|
static String |
wordBreak(String phrase)
Turns "SomeRunTogetherWords" into "Some Run Together Words".
|
static String |
wordWrap(String msg,
int wrapAt,
String lineSep)
Wrap the given text at the given number of characters per line.
|
public static final int TOOLTIP_WRAP
public static final int DIALOG_WRAP
public static String wordBreak(String phrase)
public static String wordWrap(String msg, int wrapAt, String lineSep)
public static String tooltip(String tip)
Abbot is hosted on