com.taco.swinger.text2gui
Class StringToFontConverter

java.lang.Object
  extended by com.taco.text.AbstractStringToObjectConverter
      extended by com.taco.swinger.text2gui.StringToFontConverter
All Implemented Interfaces:
IStringToObjectConverter, IObjectMapper, java.io.Serializable

public class StringToFontConverter
extends AbstractStringToObjectConverter
implements java.io.Serializable

An implementation of IStringToObjectConverter that converts strings to fonts using Font.decode().

See Also:
Serialized Form

Field Summary
static StringToFontConverter instance
          The singleton instance of this class.
 
Constructor Summary
protected StringToFontConverter()
          Since this class is implemented as a singleton, its sole constructor is protected.
 
Method Summary
 java.lang.Object toObject(java.lang.String s)
          Call Font.decode() on the string.
 
Methods inherited from class com.taco.text.AbstractStringToObjectConverter
map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final StringToFontConverter instance
The singleton instance of this class.

Constructor Detail

StringToFontConverter

protected StringToFontConverter()
Since this class is implemented as a singleton, its sole constructor is protected.

Method Detail

toObject

public java.lang.Object toObject(java.lang.String s)
                          throws java.text.ParseException
Call Font.decode() on the string.

Specified by:
toObject in interface IStringToObjectConverter
Throws:
java.text.ParseException