|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.gui.Fonts
Class Fonts contains a static method that
returns a hash set with all installed font family names
and also some static methods that select a particular
font name from each of the following categories:
monospaced, serif, sanserif.
This class cannot be instantiated.
| Constructor Summary | |
private |
Fonts()
Prevent instantiation. |
| Method Summary | |
static QuickHashSet |
getFontFamilyNames()
Returns a hash set that contains the available font family names for fonts installed on this system. |
static String |
getMonospacedFontFamilyName()
Returns the font family name of a monospaced font that is installed on this system. |
static String |
getSansSerifFontFamilyName()
Returns the font family name of a sans-serif font that is installed on this system. |
static String |
getSerifFontFamilyName()
Returns the font family name of a serif font that is installed on this system. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
private Fonts()
| Method Detail |
public static QuickHashSet getFontFamilyNames()
Returns a hash set that contains the available font family names for fonts installed on this system.
public static String getMonospacedFontFamilyName()
Returns the font family name of a monospaced font that is installed on this system.
Returns the same font family name as the method
of the same name in ConsoleGateway.
The order of the names tested as of 2.5.0 is:
The first font name that is found is returned.
public static String getSerifFontFamilyName()
Returns the font family name of a serif font that is installed on this system.
The order of the names tested as of 2.5.0 is:
The first font name that is found is returned.
public static String getSansSerifFontFamilyName()
Returns the font family name of a sans-serif font that is installed on this system.
The order of the names tested as of 2.5.0 is:
The first font name that is found is returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||