org.vizzini.ui
Class FontUtilities

java.lang.Object
  extended by org.vizzini.ui.FontUtilities

public class FontUtilities
extends Object

Provides utility methods for dealing with Font objects.

Since:
v0.1
Version:
v0.3
Author:
Jeffrey M. Thompson

Constructor Summary
FontUtilities()
           
 
Method Summary
static Font convertFromString(String fontDesc)
          Return a Font object described by the given String.
static String convertToString(Font font)
          Return a String description of the given font.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontUtilities

public FontUtilities()
Method Detail

convertFromString

public static Font convertFromString(String fontDesc)
Return a Font object described by the given String. The method calls convertFromString(convertToString( font ) ) return the original font.

Parameters:
fontDesc - A String description of a font.
Throws:
IllegalArgumentException - if fontDesc is null.
Since:
v0.1
See Also:
convertToString(java.awt.Font)

convertToString

public static String convertToString(Font font)
Return a String description of the given font. The method calls convertToString( convertFromString( string ) ) return the original string.

Parameters:
font - The font of interest.
Throws:
IllegalArgumentException - if font is null.
Since:
v0.1
See Also:
convertFromString(java.lang.String)


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02