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

Constructor Index

 o Util()

Method Index

 o getDefaultFont()
 o getFontHeight(Font)
 o getFontHeight(FontMetrics)
 o getFontHeight(Graphics)
 o 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.
 o getStringWidth(Font, String)
 o getStringWidth(FontMetrics, String)
 o getStringWidth(Graphics, String)

Constructors

 o Util
  public Util()

Methods

 o getFontHeight
  public static int getFontHeight(Graphics g)
 o getFontHeight
  public static int getFontHeight(Font f)
 o getFontHeight
  public static int getFontHeight(FontMetrics m)
 o getStringWidth
  public static int getStringWidth(Graphics g,
                                   String s)
 o getStringWidth
  public static int getStringWidth(Font f,
                                   String s)
 o getStringWidth
  public static int getStringWidth(FontMetrics m,
                                   String s)
 o getDefaultFont
  public static Font getDefaultFont()
 o 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