|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ecl.datepicker.resources.Fonts
public final class Fonts
The utility class that provides miscellaneous Fontoperations.
| Method Summary | |
|---|---|
static Font |
getBoldFont(Device device,
FontData[] fontData)
Returns the bold fond based on the given font. |
static Font |
getDefault()
returns default system font. |
static Font |
getFont(Device device,
FontData[] fontData)
returns font object for the given device/description pair. |
static FontMetrics |
getFontMetrics(Font font)
Returns the FontMetrics associated with the passed Font. |
static Point |
getTextExtent(String text,
Font font)
Returns the extent of the String text using the font
font. |
static int |
getTextWidth(String text,
Font font)
Returns the width of text in Font font. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Font getBoldFont(Device device,
FontData[] fontData)
device - the device to create the font onfontData - the original font data arraypublic static Font getDefault()
public static Font getFont(Device device,
FontData[] fontData)
device - the device to allocate font for.fontData - the font description object.
public static FontMetrics getFontMetrics(Font font)
font - the font
GC.getFontMetrics()
public static Point getTextExtent(String text,
Font font)
text using the font
font. Tab expansion and carriage return processing are
performed.
text - the text stringfont - the font
GC.textExtent(String)
public static int getTextWidth(String text,
Font font)
text in Font font.
text - the text stringfont - the font
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||