Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.awt.Font

Availability: JDK 1.0

public class Font extends Object implements Serializable {
   // Public Constructor
      public Font(String name, int style, int size);
   // Constants
      public static final int BOLD;
      public static final int ITALIC;
      public static final int PLAIN;
   // Protected Instance Variables
      protected String name;
      protected int size;
      protected int style;
   // Class Methods
1.1  public static Font decode(String str);
      public static Font getFont(String nm);
      public static Font getFont(String nm, Font font);
   // Public Instance Methods
      public boolean equals(Object obj);  // Overrides Object.equals()
      public String getFamily();
      public String getName();
1.1  public FontPeer getPeer();
      public int getSize();
      public int getStyle();
      public int hashCode();  // Overrides Object.hashCode()
      public boolean isBold();
      public boolean isItalic();
      public boolean isPlain();
      public String toString();  // Overrides Object.toString()
}
Passed To:
Component.getFontMetrics(), Component.setFont(), ComponentPeer.getFontMetrics(), ComponentPeer.setFont(), Font.getFont(), FontMetrics.FontMetrics(), Graphics.getFontMetrics(), Graphics.setFont(), MenuComponent.setFont(), Toolkit.getFontMetrics().
Returned By:
Component.getFont(), Font.decode(), Font.getFont(), FontMetrics.getFont(), Graphics.getFont(), MenuComponent.getFont(), MenuContainer.getFont().
Type Of:
FontMetrics.font.

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.