abbot.editor
Class TextFormat

java.lang.Object
  |
  +--abbot.editor.TextFormat

public class TextFormat
extends Object

Provides text formatting utilities.


Field Summary
static int DIALOG_WRAP
           
static int TOOLTIP_WRAP
           
 
Constructor Summary
TextFormat()
           
 
Method Summary
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 wordWrap(String msg, int wrapAt, String lineSep)
          Wrap the given text at the given number of characters per line.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOOLTIP_WRAP

public static final int TOOLTIP_WRAP

DIALOG_WRAP

public static final int DIALOG_WRAP
Constructor Detail

TextFormat

public TextFormat()
Method Detail

wordWrap

public static String wordWrap(String msg,
                              int wrapAt,
                              String lineSep)
Wrap the given text at the given number of characters per line.

tooltip

public static String tooltip(String tip)
Emit html, suitably line-wrapped and formatted for a tool tip.

dialog

public static String dialog(String msg)
Emit html, suitably line-wrapped and formatted for a dialog.


Copyright © 2002-2003 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge