| Package | Description |
|---|---|
| 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.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.border |
Provides classes and interface for drawing specialized borders around a Swing component.
|
| javax.swing.plaf |
Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.
|
| javax.swing.plaf.basic |
Provides user interface objects built according to the Basic look and feel.
|
| javax.swing.plaf.nimbus |
Provides user interface objects built according to the cross-platform Nimbus 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.
|
| javax.swing.text.html |
Provides the class
HTMLEditorKit and supporting classes for creating HTML text editors.
|
| javax.swing.tree |
Provides classes and interfaces for dealing with
javax.swing.JTree.
|
| Modifier and Type | Field and Description |
|---|---|
protected Font |
FontMetrics.font
The actual
Font from which the font metrics are created.
|
| Modifier and Type | Method and Description |
|---|---|
static Font |
Font.createFont(int fontFormat, File
Returns a new
Font using the specified font type and the specified font file.
|
static Font |
Font.createFont(int fontFormat, InputStream
Returns a new
Font using the specified font type and input data.
|
static Font |
Font.decode(String
Returns the
Font that the
str argument describes.
|
Font |
Font.deriveFont(AffineTransform
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, AffineTransform
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(Map
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 |
Component.getFont()
Gets the font of this component.
|
Font |
Component.AccessibleAWTComponent.getFont()
Gets the
Font of this object.
|
Font |
FontMetrics.getFont()
Gets the
Font described by this
FontMetrics object.
|
static Font |
Font.getFont(Map
Returns a
Font appropriate to the attributes.
|
static Font |
Font.getFont(String
Returns a
Font object from the system properties list.
|
static Font |
Font.getFont(String
Gets the specified
Font from the system properties list.
|
| Modifier and Type | Method and Description |
|---|---|
static Font |
Font.getFont(String
Gets the specified
Font from the system properties list.
|
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.
|
boolean |
GraphicsEnvironment.registerFont(Font
Registers a
created
Fontin this
GraphicsEnvironment.
|
void |
MenuComponent.setFont(Font
Sets the font to be used for this menu component to the specified font.
|
void |
MenuComponent.AccessibleAWTMenuComponent.setFont(Font
Sets the
Font of this object.
|
void |
List.AccessibleAWTList.AccessibleAWTListChild.setFont(Font
Set the Font of this object.
|
void |
Container.setFont(Font
Sets the font of this container.
|
abstract void |
Graphics.setFont(Font
Sets this graphics context's font to the specified font.
|
void |
Component.setFont(Font
Sets the font of this component.
|
void |
Component.AccessibleAWTComponent.setFont(Font
Sets the
Font of this object.
|
| Constructor and Description | |
|---|---|
Font(Font
Creates a new
Font from the specified
font.
|
|
FontMetrics(Font
Creates a new
FontMetrics object for finding out height and width information about the specified
Font and specific character glyphs in that
Font.
|
| Modifier and Type | Method and Description |
|---|---|
Font |
MultipleMaster.deriveMMFont(float[] axes)
Creates a new instance of a multiple master font based on the design axis values contained in the specified array.
|
Font |
MultipleMaster.deriveMMFont(float[] glyphWidths, float avgStemWidth, float typicalCapHeight, float typicalXHeight, float italicAngle)
Creates a new instance of a multiple master font based on detailed metric information.
|
abstract Font |
GlyphVector.getFont()
Returns the
Font associated with this
GlyphVector.
|
| Constructor and Description | |
|---|---|
TextLayout(String
|
| Modifier and Type | Method and Description |
|---|---|
Font |
AccessibleComponent.getFont()
Gets the Font of this object.
|
| Modifier and Type | Method and Description |
|---|---|
FontMetrics |
AccessibleComponent.getFontMetrics(Font
Gets the FontMetrics of this object.
|
void |
AccessibleComponent.setFont(Font
Sets the Font of this object.
|
| Modifier and Type | Method and Description |
|---|---|
Font |
DebugGraphics.getFont()
Returns the Font used for text drawing operations.
|
Font |
JTree.AccessibleJTree.AccessibleJTreeNode.getFont()
|
Font |
JTable.AccessibleJTable.AccessibleJTableCell.getFont()
Gets the
Font of this object.
|
Font |
JList.AccessibleJList.AccessibleJListChild.getFont()
|
Font |
UIDefaults.getFont(Object
If the value of
key is a
Font return it, otherwise return
null.
|
static Font |
UIManager.getFont(Object
Returns a font from the defaults.
|
Font |
UIDefaults.getFont(Object
If the value of
key for the given
Locale is a
Font return it, otherwise return
null.
|
static Font |
UIManager.getFont(Object
Returns a font from the defaults that is appropriate for the given locale.
|
| Modifier and Type | Method and Description |
|---|---|
static TitledBorder |
BorderFactory.createTitledBorder(Border
Adds a title to an existing border, with the specified positioning and font, and using the default text color (determined by the current look and feel).
|
static TitledBorder |
BorderFactory.createTitledBorder(Border
Adds a title to an existing border, with the specified positioning, font and color.
|
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.
|
void |
DebugGraphics.setFont(Font
Sets the Font used for text drawing operations.
|
void |
JSlider.setFont(Font
Sets the font for this component.
|
void |
JTree.AccessibleJTree.AccessibleJTreeNode.setFont(Font
|
void |
JTextArea.setFont(Font
Sets the current font.
|
void |
JTextField.setFont(Font
Sets the current font.
|
void |
JTable.AccessibleJTable.AccessibleJTableCell.setFont(Font
Sets the
Font of this object.
|
void |
JList.AccessibleJList.AccessibleJListChild.setFont(Font
|
void |
JComponent.setFont(Font
Sets the font for this component.
|
| Modifier and Type | Field and Description |
|---|---|
protected Font |
TitledBorder.titleFont
|
| Modifier and Type | Method and Description |
|---|---|
protected Font |
TitledBorder.getFont(Component
|
Font |
TitledBorder.getTitleFont()
Returns the title-font of the titled border.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TitledBorder.setTitleFont(Font
Sets the title-font of the titled border.
|
| Constructor and Description | |
|---|---|
TitledBorder(Border
Creates a TitledBorder instance with the specified border, title, title-justification, title-position, and title-font.
|
|
TitledBorder(Border
Creates a TitledBorder instance with the specified border, title, title-justification, title-position, title-font, and title-color.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FontUIResource
A subclass of java.awt.Font that implements UIResource.
|
| Constructor and Description | |
|---|---|
FontUIResource(Font
|
|
TitledBorderUIResource(Border
|
|
TitledBorderUIResource(Border
|
| Modifier and Type | Field and Description |
|---|---|
protected Font |
BasicMenuItemUI.acceleratorFont
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
BasicTabbedPaneUI.paintText(Graphics
|
| Modifier and Type | Method and Description |
|---|---|
protected Font |
NimbusStyle.getFontForState(SynthContext
Returns the font for the specified state.
|
| Modifier and Type | Method and Description |
|---|---|
Font |
SynthStyle.getFont(SynthContext
Returns the Font for the specified state.
|
protected abstract Font |
SynthStyle.getFontForState(SynthContext
Returns the font for the specified state.
|
| Modifier and Type | Method and Description |
|---|---|
int |
SynthGraphicsUtils.computeStringWidth(SynthContext
Returns the size of the passed in string.
|
Dimension |
SynthGraphicsUtils.getMaximumSize(SynthContext
Returns the maximum size needed to properly render an icon and text.
|
Dimension |
SynthGraphicsUtils.getMinimumSize(SynthContext
Returns the minimum size needed to properly render an icon and text.
|
Dimension |
SynthGraphicsUtils.getPreferredSize(SynthContext
Returns the preferred size needed to properly render an icon and text.
|
| Modifier and Type | Method and Description |
|---|---|
Font |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getFont()
|
| Modifier and Type | Method and Description |
|---|---|
FontMetrics |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getFontMetrics(Font
|
void |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.setFont(Font
|
| Modifier and Type | Method and Description |
|---|---|
Font |
GlyphView.getFont()
Fetch the font that the glyphs should be based upon.
|
Font |
LabelView.getFont()
Fetches the font that the glyphs should be based upon.
|
Font |
StyleContext.getFont(AttributeSet
Gets the font from an attribute set.
|
Font |
DefaultStyledDocument.getFont(AttributeSet
Gets the font from an attribute set.
|
Font |
StyledDocument.getFont(AttributeSet
Takes a set of attributes and turn it into a font specification.
|
Font |
StyleContext.getFont(String
Gets a new font.
|
| Modifier and Type | Method and Description |
|---|---|
FontMetrics |
StyleContext.getFontMetrics(Font
Returns font metrics for a font.
|
| Modifier and Type | Method and Description |
|---|---|
Font |
StyleSheet.getFont(AttributeSet
Fetches the font to use for the given set of attributes.
|
| Modifier and Type | Field and Description |
|---|---|
protected Font |
DefaultTreeCellEditor.font
Font to paint with,
null indicates font of renderer is to be used.
|
| Modifier and Type | Method and Description |
|---|---|
Font |
DefaultTreeCellEditor.getFont()
Gets the font used for editing.
|
Font |
DefaultTreeCellEditor.DefaultTextField.getFont()
|
Font |
DefaultTreeCellRenderer.getFont()
Gets the font of this component.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultTreeCellEditor.setFont(Font
Sets the font to edit with.
|
void |
DefaultTreeCellRenderer.setFont(Font
Subclassed to map
FontUIResources to null.
|