info.rolandkrueger.roklib.util.formatter
Class TextFormatter

java.lang.Object
  extended by info.rolandkrueger.roklib.util.formatter.TextFormatter

public final class TextFormatter
extends Object


Field Summary
private  StringBuilder mBuffer
           
private  ITextFormatter mFormatter
           
 
Constructor Summary
TextFormatter(ITextFormatter formatter)
           
 
Method Summary
 TextFormatter append(CharSequence text)
           
 TextFormatter appendBold(CharSequence text)
           
 TextFormatter appendColored(CharSequence text, Color color)
           
 TextFormatter appendItalic(CharSequence text)
           
 TextFormatter appendMonospaced(CharSequence text)
           
 TextFormatter appendStrikeThrough(CharSequence text)
           
 TextFormatter appendSubscript(CharSequence text)
           
 TextFormatter appendSuperscript(CharSequence text)
           
 TextFormatter appendUnderlined(CharSequence text)
           
 CharSequence getFormattedText()
           
 int getLength()
           
 void reset()
           
 void setLength(int newLength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mFormatter

private ITextFormatter mFormatter

mBuffer

private StringBuilder mBuffer
Constructor Detail

TextFormatter

public TextFormatter(ITextFormatter formatter)
Method Detail

getLength

public int getLength()

setLength

public void setLength(int newLength)

getFormattedText

public CharSequence getFormattedText()

reset

public void reset()

append

public TextFormatter append(CharSequence text)

appendBold

public TextFormatter appendBold(CharSequence text)

appendColored

public TextFormatter appendColored(CharSequence text,
                                   Color color)

appendItalic

public TextFormatter appendItalic(CharSequence text)

appendMonospaced

public TextFormatter appendMonospaced(CharSequence text)

appendSubscript

public TextFormatter appendSubscript(CharSequence text)

appendSuperscript

public TextFormatter appendSuperscript(CharSequence text)

appendUnderlined

public TextFormatter appendUnderlined(CharSequence text)

appendStrikeThrough

public TextFormatter appendStrikeThrough(CharSequence text)


Copyright © 2007-2011. All Rights Reserved.