Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JavaTM 2 Platform Std. Ed. v1.4.2
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
java.awt.FontMetrics

Packages that use FontMetrics
java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images.
javax.accessibility | Defines a contract between user-interface components and an assistive technology that provides access to those components.
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.plaf.basic | Provides user interface objects built according to the Basic look and feel.
javax.swing.table | Provides classes and interfaces for dealing with `javax.swing.JTable`.
javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components.

Uses of FontMetrics in java.awt

Methods in java.awt that return FontMetrics
`FontMetrics` | `List.AccessibleAWTList.AccessibleAWTListChild.getFontMetrics(Font f)` Get the FontMetrics of this object.
`FontMetrics` | `MenuComponent.AccessibleAWTMenuComponent.getFontMetrics(Font f)` Gets the `FontMetrics` of this object.
`FontMetrics` | `Graphics.getFontMetrics()` Gets the font metrics of the current font.
`abstract FontMetrics` | `Graphics.getFontMetrics(Font f)` Gets the font metrics for the specified font.
`abstract FontMetrics` | `Toolkit.getFontMetrics(Font font)` Deprecated. As of JDK version 1.2, replaced by the `Font` method `getLineMetrics`.
`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.

Uses of FontMetrics in javax.accessibility

Methods in javax.accessibility that return FontMetrics
`FontMetrics` | `AccessibleComponent.getFontMetrics(Font f)` Gets the FontMetrics of this object.

Uses of FontMetrics in javax.swing

Methods in javax.swing that return FontMetrics
`FontMetrics` | `JList.AccessibleJList.AccessibleJListChild.getFontMetrics(Font f)`
`FontMetrics` | `JTree.AccessibleJTree.AccessibleJTreeNode.getFontMetrics(Font f)`
`FontMetrics` | `JTable.AccessibleJTable.AccessibleJTableCell.getFontMetrics(Font f)` Gets the `FontMetrics` of this object.
`FontMetrics` | `DebugGraphics.getFontMetrics()` Overrides `Graphics.getFontMetrics`.
`FontMetrics` | `DebugGraphics.getFontMetrics(Font f)` Overrides `Graphics.getFontMetrics`.

Methods in javax.swing with parameters of type FontMetrics
`static int` | `SwingUtilities.computeStringWidth(FontMetrics fm, String str)` Compute the width of the string using a font with the specified "metrics" (sizes).
`static String` | `SwingUtilities.layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)` Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string.
`static String` | `SwingUtilities.layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)` Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string.

Uses of FontMetrics in javax.swing.plaf.basic

Methods in javax.swing.plaf.basic that return FontMetrics
`protected FontMetrics` | `BasicTabbedPaneUI.getFontMetrics()`

Methods in javax.swing.plaf.basic with parameters of type FontMetrics
`protected void` | `BasicTabbedPaneUI.layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)`
`protected void` | `BasicTabbedPaneUI.paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)`
`protected int` | `BasicTabbedPaneUI.calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics)`
`protected String` | `BasicLabelUI.layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)` Forwards the call to SwingUtilities.layoutCompoundLabel().
`protected String` | `BasicInternalFrameTitlePane.getTitle(String text, FontMetrics fm, int availTextWidth)`

Uses of FontMetrics in javax.swing.table

Methods in javax.swing.table that return FontMetrics
`FontMetrics` | `JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getFontMetrics(Font f)`

Uses of FontMetrics in javax.swing.text

Fields in javax.swing.text declared as FontMetrics
`protected FontMetrics` | `PlainView.metrics` Font metrics for the current font.

Methods in javax.swing.text that return FontMetrics
`protected FontMetrics` | `FieldView.getFontMetrics()` Fetches the font metrics associated with the component hosting this view.
`FontMetrics` | `StyleContext.getFontMetrics(Font f)` Returns font metrics for a font.
`protected FontMetrics` | `LabelView.getFontMetrics()` Deprecated. FontMetrics are not used for glyph rendering when running in the Java2 SDK.

Methods in javax.swing.text with parameters of type FontMetrics
`static int` | `Utilities.getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset)` Determines the width of the given segment of text taking tabs into consideration.
`static int` | `Utilities.getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset)` Determines the relative offset into the given text that best represents the given span in the view coordinate system.
`static int` | `Utilities.getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset, boolean round)`
`static int` | `Utilities.getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset)` Determine where to break the given text to fit within the the given span.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JavaTM 2 Platform Std. Ed. v1.4.2
PREV NEXT | FRAMES NO FRAMES

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.