Class sunsoft.jws.visual.rt.type.FontConverter
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sunsoft.jws.visual.rt.type.FontConverter

java.lang.Object
   |
   +----sunsoft.jws.visual.rt.type.Converter
           |
           +----sunsoft.jws.visual.rt.type.FontConverter

public class FontConverter
extends Converter
Converts Font objects to strings and back again. An example of the string representation: "name=Helvetica;style=bold;size=14". The styles that can currently be used are "plain", "bold", and "italic".

Constructor Index

 o FontConverter()

Method Index

 o convertFromString(String)
Converts a string to a new instance of Font.
 o convertToString(Object)
Converts a Font instance to a string.

Constructors

 o FontConverter
  public FontConverter()

Methods

 o convertToString
  public String convertToString(Object obj)
Converts a Font instance to a string.
Overrides:
convertToString in class Converter
 o convertFromString
  public Object convertFromString(String s)
Converts a string to a new instance of Font.
Throws: ParseException
when there is a format problem with the string
Overrides:
convertFromString in class Converter

All Packages  Class Hierarchy  This Package  Previous  Next  Index