com.algosome.common.util
Class FontManager

java.lang.Object
  extended by com.algosome.common.util.FontManager

public class FontManager
extends java.lang.Object

Singleton class to manage Fonts. Historically used to retrieve the heights of a Font, which must be set using some type of window and set ysing the setFontHeights static method prior to retrieving the singleton.

Author:
Greg Cope

Method Summary
 int getDefaultFontHeight()
           
 java.util.Map<java.awt.Font,java.lang.Integer> getFontHeights()
          Retrieves a Map keyed with a Font and valued with its true drawing font height that may differ between OS's.
static FontManager getFontManager()
           
 java.util.List<java.awt.Font> getFonts()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFontHeights

public java.util.Map<java.awt.Font,java.lang.Integer> getFontHeights()
Retrieves a Map keyed with a Font and valued with its true drawing font height that may differ between OS's.

Returns:

getFonts

public java.util.List<java.awt.Font> getFonts()

getDefaultFontHeight

public int getDefaultFontHeight()

getFontManager

public static FontManager getFontManager()
Returns: