| Package | Description |
|---|---|
| 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.plaf.synth |
Synth is a skinnable look and feel in which all painting is delegated.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
FontMetrics |
Graphics.getFontMetrics()
Gets the font metrics of the current font.
|
FontMetrics |
MenuComponent.AccessibleAWTMenuComponent.getFontMetrics(Font
Gets the
FontMetrics of this object.
|
FontMetrics |
List.AccessibleAWTList.AccessibleAWTListChild.getFontMetrics(Font
Get the FontMetrics of this object.
|
abstract FontMetrics |
Toolkit.getFontMetrics(Font
Deprecated.
As of JDK version 1.2, replaced by the
Font method getLineMetrics.
|
abstract FontMetrics |
Graphics.getFontMetrics(Font
Gets the font metrics for the specified font.
|
FontMetrics |
Component.getFontMetrics(Font
Gets the font metrics for the specified font.
|
FontMetrics |
Component.AccessibleAWTComponent.getFontMetrics(Font
Gets the
FontMetrics of this object.
|
| Modifier and Type | Method and Description |
|---|---|
FontMetrics |
AccessibleComponent.getFontMetrics(Font
Gets the FontMetrics of this object.
|
| Modifier and Type | Method and Description |
|---|---|
FontMetrics |
DebugGraphics.getFontMetrics()
Overrides
Graphics.getFontMetrics.
|
FontMetrics |
DebugGraphics.getFontMetrics(Font
Overrides
Graphics.getFontMetrics.
|
FontMetrics |
JTree.AccessibleJTree.AccessibleJTreeNode.getFontMetrics(Font
|
FontMetrics |
JTable.AccessibleJTable.AccessibleJTableCell.getFontMetrics(Font
Gets the
FontMetrics of this object.
|
FontMetrics |
JList.AccessibleJList.AccessibleJListChild.getFontMetrics(Font
|
FontMetrics |
JComponent.getFontMetrics(Font
Gets the
FontMetrics for the specified
Font.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
SwingUtilities.computeStringWidth(FontMetrics
Compute the width of the string using a font with the specified "metrics" (sizes).
|
static String |
SwingUtilities.layoutCompoundLabel(FontMetrics
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(JComponent
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.
|
| Modifier and Type | Method and Description |
|---|---|
protected FontMetrics |
BasicTabbedPaneUI.getFontMetrics()
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
BasicTabbedPaneUI.calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics
|
protected String |
BasicInternalFrameTitlePane.getTitle(String
|
protected String |
BasicLabelUI.layoutCL(JLabel
Forwards the call to SwingUtilities.layoutCompoundLabel().
|
protected void |
BasicTabbedPaneUI.layoutLabel(int tabPlacement, FontMetrics
|
protected void |
BasicTabbedPaneUI.paintText(Graphics
|
| Modifier and Type | Method and Description |
|---|---|
protected FontMetrics |
SynthTabbedPaneUI.getFontMetrics()
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
SynthTabbedPaneUI.calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics
|
int |
SynthGraphicsUtils.computeStringWidth(SynthContext
Returns the size of the passed in string.
|
String |
SynthGraphicsUtils.layoutText(SynthContext
Lays out text and an icon returning, by reference, the location to place the icon and text.
|
| Modifier and Type | Method and Description |
|---|---|
FontMetrics |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getFontMetrics(Font
|
| Modifier and Type | Field and Description |
|---|---|
protected FontMetrics |
PlainView.metrics
Font metrics for the current font.
|
| Modifier and Type | Method and Description |
|---|---|
protected FontMetrics |
LabelView.getFontMetrics()
Deprecated.
FontMetrics are not used for glyph rendering when running in the JDK.
|
protected FontMetrics |
FieldView.getFontMetrics()
Fetches the font metrics associated with the component hosting this view.
|
FontMetrics |
StyleContext.getFontMetrics(Font
Returns font metrics for a font.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
Utilities.getBreakLocation(Segment
Determine where to break the given text to fit within the given span.
|
static int |
Utilities.getTabbedTextOffset(Segment
Determines the relative offset into the given text that best represents the given span in the view coordinate system.
|
static int |
Utilities.getTabbedTextOffset(Segment
|
static int |
Utilities.getTabbedTextWidth(Segment
Determines the width of the given segment of text taking tabs into consideration.
|