Package ca.phon.ui

Class FontFormatter

java.lang.Object
ca.phon.ui.FontFormatter
All Implemented Interfaces:
Formatter<Font>

@FormatterType(java.awt.Font.class) public class FontFormatter extends Object implements Formatter<Font>
Formatter for Fonts
  • Constructor Details

    • FontFormatter

      public FontFormatter()
  • Method Details

    • format

      public String format(Font obj)
      Description copied from interface: Formatter
      Convert the given object into a formatted String.
      Specified by:
      format in interface Formatter<Font>
      Returns:
      formatted string
    • parse

      public Font parse(String text) throws ParseException
      Description copied from interface: Formatter
      Parse the given string into a new object instance
      Specified by:
      parse in interface Formatter<Font>
      Returns:
      parsed object
      Throws:
      ParseException - if there was a problem parsing the given text