|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttalx.util.DrawUtils
Provides static methods to assist in drawing components.
| Method Summary | |
static java.awt.Font |
bestFitFont(java.lang.String text,
java.awt.Component c)
Returns the font that best fits the given string to the given component. |
static javax.swing.ImageIcon |
getScaledIcon(java.lang.String name,
int width,
int height,
boolean isFile)
Returns a scaled ImageIcon from the given filename. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static javax.swing.ImageIcon getScaledIcon(java.lang.String name,
int width,
int height,
boolean isFile)
name - the name of the file or resource that holds the image.width - the width in pixels of the returned imageheight - the height in pixels of the returned imageisFile - if true, this method will try to load the image from the
file system. If false, this method will use the system class
loader to find the image resource in the classpath.
public static java.awt.Font bestFitFont(java.lang.String text,
java.awt.Component c)
java.lang.IllegalStateException - if the component is not currently showing,
or its font has not been set.
|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.