|
|||||||||
| Home >> All >> org >> mitre >> [ cvw overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.mitre.cvw
Class CVWFontController

java.lang.Objectorg.mitre.cvw.CVWFontController
- public class CVWFontController
- extends java.lang.Object
The CVWFontController class provides a mechanism to controls fonts in an application wide method. Right now there are only component wide settings (i.e. all text areas). We want to add support for cvw specific settings (i.e. error boxes, text input, text output, etc) in the future. This class is, for the most part, a proxy to the UIManager. This could probably be eliminated completely.
- Version:
- $Revision: 1.2 $
| Field Summary | |
private static java.util.Vector |
btnFonts
|
private static java.util.Vector |
compFonts
|
private static java.lang.String[] |
fontFamilyNames
fontFamilyNames is a list of the available font families |
private static java.lang.String[] |
fontSizes
fontSizes is a list of available font sizes |
private static java.lang.String[] |
fontStyles
fontStyles is a list of available styles in a string format. |
private static java.lang.String[] |
fontUINames
fontUINames are the font component User Interface names (i.e. |
private static java.util.Vector |
listFonts
|
private static java.util.Vector |
menuAccelFonts
|
private static java.util.Vector |
menuFonts
|
private static java.util.Vector |
textFonts
|
| Constructor Summary | |
CVWFontController()
|
|
| Method Summary | |
static void |
addFontPrefs(java.lang.String fontFilename)
addFontPrefs adds the fonts specified in fontFilename to UIManager as defaults. |
static java.awt.Font |
deriveBoldFont(javax.swing.JComponent comp)
|
static java.lang.String |
getFamilyByFontName(java.lang.String fontUIName)
|
static java.lang.String[] |
getFontFamilyNames()
getFontFamilyNames returns a list of the available font families. |
static java.lang.String[] |
getFontSizes()
getFontSizes returns a list of available font sizes. |
static java.lang.String[] |
getFontStyles()
getFontStyles returns a list of available styles. |
static java.lang.String[] |
getFontUINames()
getFontUINames returns a user-friendly list of font UIs |
static java.lang.String |
getSizeByFontName(java.lang.String fontUIName)
getFontByName returns the Font used by the fontUIName |
static java.lang.String |
getStyleByFontName(java.lang.String fontUIName)
getStyleByFontName returns a String that is a descriptive style name of the font object. |
private static java.lang.String |
getStyleByInt(int styleint)
getStyleByInt is used to lookup the String associated with the integer styleint. |
private static int |
getStyleByString(java.lang.String stylename)
getStyleByString is used to lookup the integer associated with the string stylename |
static java.lang.Object |
setFontByName(java.lang.String fontUIName,
java.lang.String fontFamilyName,
java.lang.String style,
java.lang.String size)
setFontByName associates the fontName with font. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
fontUINames
private static java.lang.String[] fontUINames
- fontUINames are the font component User Interface names (i.e. TextArea, CVWError,
etc.) These are meant to
fontFamilyNames
private static java.lang.String[] fontFamilyNames
- fontFamilyNames is a list of the available font families
fontSizes
private static java.lang.String[] fontSizes
- fontSizes is a list of available font sizes
fontStyles
private static java.lang.String[] fontStyles
- fontStyles is a list of available styles in a string format.
menuFonts
private static java.util.Vector menuFonts
menuAccelFonts
private static java.util.Vector menuAccelFonts
textFonts
private static java.util.Vector textFonts
compFonts
private static java.util.Vector compFonts
listFonts
private static java.util.Vector listFonts
btnFonts
private static java.util.Vector btnFonts
| Constructor Detail |
CVWFontController
public CVWFontController()
| Method Detail |
addFontPrefs
public static void addFontPrefs(java.lang.String fontFilename) throws java.io.IOException, java.io.FileNotFoundException
- addFontPrefs adds the fonts specified in fontFilename to UIManager as defaults.
deriveBoldFont
public static java.awt.Font deriveBoldFont(javax.swing.JComponent comp)
getFontFamilyNames
public static java.lang.String[] getFontFamilyNames()
- getFontFamilyNames returns a list of the available font families.
getFontSizes
public static java.lang.String[] getFontSizes()
- getFontSizes returns a list of available font sizes.
This would be called in GUI methods (i.e. set/get fonts).
getFontStyles
public static java.lang.String[] getFontStyles()
- getFontStyles returns a list of available styles.
This would be called in GUI methods (i.e. set/get fonts).
getFontUINames
public static java.lang.String[] getFontUINames()
- getFontUINames returns a user-friendly list of font UIs
getStyleByString
private static int getStyleByString(java.lang.String stylename)
- getStyleByString is used to lookup the integer associated with
the string stylename
getStyleByInt
private static java.lang.String getStyleByInt(int styleint)
- getStyleByInt is used to lookup the String associated with
the integer styleint.
setFontByName
public static java.lang.Object setFontByName(java.lang.String fontUIName, java.lang.String fontFamilyName, java.lang.String style, java.lang.String size)
- setFontByName associates the fontName with font.
getSizeByFontName
public static java.lang.String getSizeByFontName(java.lang.String fontUIName)
- getFontByName returns the Font used by the fontUIName
getStyleByFontName
public static java.lang.String getStyleByFontName(java.lang.String fontUIName)
- getStyleByFontName returns a String that is a descriptive style name
of the font object.
getFamilyByFontName
public static java.lang.String getFamilyByFontName(java.lang.String fontUIName)
|
|||||||||
| Home >> All >> org >> mitre >> [ cvw overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.mitre.cvw.CVWFontController