All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.awt.util.Util
java.lang.Object
|
+----symantec.itools.awt.util.Util
- public class Util
- extends Object
-
Util()
-
-
getDefaultFont()
-
-
getFontHeight(Font)
-
-
getFontHeight(FontMetrics)
-
-
getFontHeight(Graphics)
-
-
getGraphics(Image, Component)
- Preserves the font information of a graphics object retrieved from
an image so that susequent calls to getFontMetrics through the graphics
object will not result in a NullPointerException.
-
getStringWidth(Font, String)
-
-
getStringWidth(FontMetrics, String)
-
-
getStringWidth(Graphics, String)
-
Util
public Util()
getFontHeight
public static int getFontHeight(Graphics g)
getFontHeight
public static int getFontHeight(Font f)
getFontHeight
public static int getFontHeight(FontMetrics m)
getStringWidth
public static int getStringWidth(Graphics g,
String s)
getStringWidth
public static int getStringWidth(Font f,
String s)
getStringWidth
public static int getStringWidth(FontMetrics m,
String s)
getDefaultFont
public static Font getDefaultFont()
getGraphics
public static Graphics getGraphics(Image image,
Component component)
- Preserves the font information of a graphics object retrieved from
an image so that susequent calls to getFontMetrics through the graphics
object will not result in a NullPointerException.
All Packages Class Hierarchy This Package Previous Next Index