JSR-209 (Final 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. 
java.awt.font Provides classes and interface relating to fonts. 
javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. 
javax.swing.border Provides classes and interface for drawing specialized borders around a Swing component. 
javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. 
 

Uses of Font in java.awt
 

Methods in java.awt that return Font
static Font Font.getFont(java.util.Map attributes)
          Returns a Font appropriate to this attribute set.
static Font Font.getFont(java.lang.String nm)
          Returns a Font object from the system properties list.
static Font Font.decode(java.lang.String str)
          Returns the Font that the str argument describes.
static Font Font.getFont(java.lang.String nm, Font font)
          Gets the specified Font from the system properties list.
 Font Font.deriveFont(int style, float size)
          Creates a new Font object by replicating this Font object and applying a new style and size.
 Font Font.deriveFont(AffineTransform trans)
          Creates a new Font object by replicating the current Font object and applying a new transform to it.
 Font Font.deriveFont(java.util.Map attributes)
          Creates a new Font object by replicating the current Font object and applying a new set of font attributes to it.
 

Methods in java.awt with parameters of type Font
static Font Font.getFont(java.lang.String nm, Font font)
          Gets the specified Font from the system properties list.
 

Uses of Font in java.awt.font
 

Methods in java.awt.font that return Font
abstract  Font GlyphVector.getFont()
          Returns the Font associated with this GlyphVector.
 

Constructors in java.awt.font with parameters of type Font
TextLayout(java.lang.String string, Font font, FontRenderContext frc)
          Constructs a TextLayout from a String and a Font.
 

Uses of Font in javax.swing
 

Methods in javax.swing with parameters of type Font
 void JTextArea.setFont(Font f)
          Sets the current font.
 void JComponent.setFont(Font font)
          Sets the font for this component.
 void JTextField.setFont(Font f)
          Sets the current font.
static TitledBorder BorderFactory.createTitledBorder(Border border, java.lang.String title, int titleJustification, int titlePosition, Font titleFont)
          Adds a title to an existing border, specifying the text of the title along with its positioning and font, using the default text color determined by the current look and feel.
static TitledBorder BorderFactory.createTitledBorder(Border border, java.lang.String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
          Adds a title to an existing border, specifying the text of the title along with its positioning, font, and color.
 

Uses of Font in javax.swing.border
 

Fields in javax.swing.border declared as Font
protected  Font TitledBorder.titleFont
           
 

Methods in javax.swing.border that return Font
 Font TitledBorder.getTitleFont()
          Returns the title-font of the titled border.
protected  Font TitledBorder.getFont(java.awt.Component c)
           
 

Methods in javax.swing.border with parameters of type Font
 void TitledBorder.setTitleFont(Font titleFont)
          Sets the title-font of the titled border.
 

Constructors in javax.swing.border with parameters of type Font
TitledBorder(Border border, java.lang.String title, int titleJustification, int titlePosition, Font titleFont)
          Creates a TitledBorder instance with the specified border, title, title-justification, title-position, and title-font.
TitledBorder(Border border, java.lang.String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
          Creates a TitledBorder instance with the specified border, title, title-justification, title-position, title-font, and title-color.
 

Uses of Font in javax.swing.text
 

Methods in javax.swing.text that return Font
 Font StyledDocument.getFont(AttributeSet attr)
          Takes a set of attributes and turn it into a font specification.
 


JSR-209 (Final Release)

Java and Java 2D are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Copyright 1993 - 2006 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All Rights Reserved.
Use of this specification is subject to this license.