Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 217 (Maintenance Release)

Uses of Class
java.awt.Font

Packages that use Font
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
 

Uses of Font in java.awt
 

Fields in java.awt declared as Font
protected  Font FontMetrics.font
          The actual Font from which the font metrics are created.
 

Methods in java.awt that return Font
abstract  Font Graphics.getFont()
          Gets the current font.
 Font Component.getFont()
          Gets the font of this component.
static Font Font.getFont(Map attributes)
          Returns a Font appropriate to this attribute set.
static Font Font.getFont(String nm)
          Returns a Font object from the system properties list.
static Font Font.decode(String str)
          Returns the Font that the str argument describes.
static Font Font.getFont(String nm, Font font)
          Gets the specified Font from the system properties list.
 Font FontMetrics.getFont()
          Gets the Font described by this FontMetrics object.
 

Methods in java.awt with parameters of type Font
abstract  FontMetrics Toolkit.getFontMetrics(Font font)
          Deprecated. Deprecated. This returns integer metrics for the default screen.
abstract  void Graphics.setFont(Font font)
          Sets this graphics context's font to the specified font.
abstract  FontMetrics Graphics.getFontMetrics(Font f)
          Gets the font metrics for the specified font.
 void Component.setFont(Font f)
          Sets the font of this component.
 FontMetrics Component.getFontMetrics(Font font)
          Gets the font metrics for the specified font.
 void Container.setFont(Font f)
          Sets the font of this container.
static Font Font.getFont(String nm, Font font)
          Gets the specified Font from the system properties list.
 

Constructors in java.awt with parameters of type Font
FontMetrics(Font font)
          Creates a new FontMetrics object for finding out height and width information about the specified Font and specific character glyphs in that Font.
 


JSR 217 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 217 specification.