Overview
Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev
Next
Sample
Document
Uses of Class java.awt.Font
Deprecated: ShowHide
View: ClientSubclassPackageImplementation

Uses of Class
java.awt.Font

  • Packages that use Font 
    Package Description
    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 
      Modifier and Type Field and Description
      protected Font  FontMetrics.font
      The actual Font from which the font metrics are created.
      Methods in java.awt that return Font 
      Modifier and Type Method and Description
      static Font  Font.createFont(int fontFormat, java.io.File fontFile)
      Returns a new Font using the specified font type and the specified font file.
      static Font  Font.createFont(int fontFormat, java.io.InputStream fontStream)
      Returns a new Font using the specified font type and input data.
      static Font  Font.decode(java.lang.String str)
      Returns the Font that the str argument describes.
      Font  Font.deriveFont(java.awt.geom.AffineTransform trans)
      Creates a new Font object by replicating the current Font object and applying a new transform to it.
      Font  Font.deriveFont(float size)
      Creates a new Font object by replicating the current Font object and applying a new size to it.
      Font  Font.deriveFont(int style)
      Creates a new Font object by replicating the current Font object and applying a new style to it.
      Font  Font.deriveFont(int style, java.awt.geom.AffineTransform trans)
      Creates a new Font object by replicating this Font object and applying a new style and transform.
      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(java.util.Map<? extends java.text.AttributedCharacterIterator.Attribute,?> attributes)
      Creates a new Font object by replicating the current Font object and applying a new set of font attributes to it.
      abstract Font[]  GraphicsEnvironment.getAllFonts()
      Returns an array containing a one-point size instance of all fonts available in this GraphicsEnvironment.
      Font  MenuContainer.getFont()
       
      Font  MenuComponent.getFont()
      Gets the font used for this menu component.
      Font  MenuComponent.AccessibleAWTMenuComponent.getFont()
      Gets the Font of this object.
      Font  List.AccessibleAWTList.AccessibleAWTListChild.getFont()
      Get the Font of this object.
      abstract Font  Graphics.getFont()
      Gets the current font.
      Font  FontMetrics.getFont()
      Gets the Font described by this FontMetrics object.
      Font  Component.getFont()
      Gets the font of this component.
      Font  Component.AccessibleAWTComponent.getFont()
      Gets the Font of this object.
      static Font  Font.getFont(java.util.Map<? extends java.text.AttributedCharacterIterator.Attribute,?> attributes)
      Returns a Font appropriate to the attributes.
      static Font  Font.getFont(java.lang.String nm)
      Returns a Font object from the system properties list.
      static Font  Font.getFont(java.lang.String nm, Font font)
      Gets the specified Font from the system properties list.
      Methods in java.awt with parameters of type Font 
      Modifier and Type Method and Description
      static Font  Font.getFont(java.lang.String nm, Font font)
      Gets the specified Font from the system properties list.
      abstract FontMetrics  Toolkit.getFontMetrics(Font font)
      Deprecated. As of JDK version 1.2, replaced by the Font method getLineMetrics.
      FontMetrics  MenuComponent.AccessibleAWTMenuComponent.getFontMetrics(Font f)
      Gets the FontMetrics of this object.
      FontMetrics  List.AccessibleAWTList.AccessibleAWTListChild.getFontMetrics(Font f)
      Get the FontMetrics of this object.
      abstract FontMetrics  Graphics.getFontMetrics(Font f)
      Gets the font metrics for the specified font.
      FontMetrics  Component.getFontMetrics(Font font)
      Gets the font metrics for the specified font.
      FontMetrics  Component.AccessibleAWTComponent.getFontMetrics(Font f)
      Gets the FontMetrics of this object.
      boolean  GraphicsEnvironment.registerFont(Font font)
      Registers a created Fontin this GraphicsEnvironment.
      void  MenuComponent.setFont(Font f)
      Sets the font to be used for this menu component to the specified font.
      void  MenuComponent.AccessibleAWTMenuComponent.setFont(Font f)
      Sets the Font of this object.
      void  List.AccessibleAWTList.AccessibleAWTListChild.setFont(Font f)
      Set the Font of this object.
      abstract void  Graphics.setFont(Font font)
      Sets this graphics context's font to the specified font.
      void  Container.setFont(Font f)
      Sets the font of this container.
      void  Component.setFont(Font f)
      Sets the font of this component.
      void  Component.AccessibleAWTComponent.setFont(Font f)
      Sets the Font of this object.
      Constructors in java.awt with parameters of type Font 
      Constructor and Description
      Font(Font font)
      Creates a new Font from the specified 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.
This document was created by Dulcet from the OpenJDK sources. Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.

SourceForge