|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlapisx.swing.FontUtil
| Constructor Summary | |
FontUtil()
|
|
| Method Summary | |
static int |
getHeight(Font f,
Component c)
Get height of a font. |
static MetalTheme |
makeResizedMetalTheme(int size)
Makes a Metal theme with resized fonts. |
static void |
resizeFont(Component c,
int size)
Sets the size of a component's font. |
static Font |
resizeFont(Font f,
int size)
Enlarges or shrinks a font. |
static void |
resizeHTMLFont(JEditorPane c,
int size)
Sets the size of a JEditorPane's HTML fonts. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FontUtil()
| Method Detail |
public static int getHeight(Font f,
Component c)
f - Fontc - Component that will display the font. Must be showing
on the screen, otherwise we can't get its Graphics context.
IllegalArgumentException - if c is not showing on the screen.
public static void resizeFont(Component c,
int size)
c - Component to changesize - font size in points
public static Font resizeFont(Font f,
int size)
f - Font to usesize - new font size in points
public static void resizeHTMLFont(JEditorPane c,
int size)
c - JEditorPane to changesize - font size in pointspublic static MetalTheme makeResizedMetalTheme(int size)
size - font size in points
MetalLookAndFeel.setCurrentTheme(javax.swing.plaf.metal.MetalTheme) to install it.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||