|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.croftsoft.core.awt.font.FontLib
public final class FontLib
Library of static methods for manipulating Fonts.
Method Summary | |
---|---|
static Rectangle2D |
getTextLayoutBounds(Component component,
String text)
|
static void |
setMaxFont(Component component,
String text,
String fontName,
int fontStyle,
double maxWidth,
double maxHeight)
Sets the Graphics Font size so that it maximizes the bounded text. |
static void |
setMaxFont(Graphics graphics,
String text,
String fontName,
int fontStyle,
double maxWidth,
double maxHeight)
Sets the Graphics Font size so that it maximizes the bounded text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Rectangle2D getTextLayoutBounds(Component component, String text)
public static void setMaxFont(Graphics graphics, String text, String fontName, int fontStyle, double maxWidth, double maxHeight)
public static void setMaxFont(Component component, String text, String fontName, int fontStyle, double maxWidth, double maxHeight)
|
CroftSoft Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |