|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.image.painter.FontUtils
A utility class for working with fonts.
FontUtils contains utility functions for:
Method Summary | |
static java.awt.Font |
deriveFontUsingStyle(java.awt.Font baseFont,
int derivingStyle,
int derivedStyles)
Returns a Font based on the base font, but with the styles specified by derivingStyle and derivedStyles. |
static int |
getAverageWidth(java.awt.Font font)
Return the average width of a glyph in this font. |
static int |
getAverageWidth(java.awt.FontMetrics metrics)
Return the average width of a glyph in this font. |
static java.awt.Font |
getDefaultDialogFont()
Returns the default Dialog font |
static java.awt.Font |
getDefaultDialogInputFont()
Returns the default dialog input font. |
static java.awt.Font |
getDefaultMonospacedFont()
Returns the default monospaced font. |
static java.awt.Font |
getDefaultSansSerifFont()
Returns the default sans serif font. |
static java.awt.Font |
getDefaultSerifFont()
Returns the default serif font. |
static int |
getMinimumWidth(java.awt.Font font)
Return the minimum width of a glyph in this font. |
static int |
getMinimumWidth(java.awt.FontMetrics metrics)
Return the minimum width of a glyph in this font. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.awt.Font deriveFontUsingStyle(java.awt.Font baseFont, int derivingStyle, int derivedStyles)
baseFont
- Font to get base the derived Font on.derivingStyle
- Style bits that must be present in the derived font.derivedStyles
- Mask of which derivingStyle bits are valid.public static java.awt.Font getDefaultDialogFont()
public static java.awt.Font getDefaultSansSerifFont()
public static java.awt.Font getDefaultSerifFont()
public static java.awt.Font getDefaultMonospacedFont()
public static java.awt.Font getDefaultDialogInputFont()
public static final int getAverageWidth(java.awt.Font font)
font
- the font used to testpublic static int getAverageWidth(java.awt.FontMetrics metrics)
metrics
- the fontmetrics used to testpublic static final int getMinimumWidth(java.awt.Font font)
font
- the font used to testpublic static int getMinimumWidth(java.awt.FontMetrics metrics)
metrics
- the fontmetrics used to test
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |