Uses of Class java.awt.Font

Uses in package javax.swing.border

Constructors with parameter type java.awt.Font

TitledBorder.TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
Constructs a TitledBorder given its border, title text, horizontal alignment, vertical position, and font.
TitledBorder.TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
Constructs a TitledBorder given its border, title text, horizontal alignment, vertical position, font, and color.

Fields of type java.awt.Font

Font
The font for displaying the title text.

Methods with parameter type java.awt.Font

void
Sets the font for displaying the title text.

Methods with return type java.awt.Font

Font
Returns the font that is used for displaying the title text for a given Component.
Font
Retrieves the font for displaying the title text.

Uses in package java.awt.peer

Methods with parameter type java.awt.Font

FontMetrics
Returns the font metrics for the specified font.
void
Sets the font of the component.
void
Set the font on this menu component peer.

Uses in package java.awt

Constructors with parameter type java.awt.Font

Initializes a new instance of FontMetrics for the specified font.

Fields of type java.awt.Font

Font
This is the font for which metrics will be returned.

Methods with parameter type java.awt.Font

Font
Font.getFont(String propname, Font defval)
Returns a Font object from the passed property name.
FontMetrics
Returns the font metrics for the specified font in this component.
FontMetrics
Gets the font metrics for a font.
FontMetrics
Returns the font metrics for the specified font.
FontMetrics
Retrieves information on the rendering and metrics of the supplied font.
FontMetrics
Return the font metrics for the specified font
void
Sets the font for this component to the specified font.
void
Sets the font.
void
void
Sets the font for this graphics context to the specified value.
void
Sets the font for this component to the specified font.
void
Sets the Font used for text created by this component.

Methods with return type java.awt.Font

Font
Font.createFont(int fontFormat, File file)
Creates a new font from a File object.
Font
Font.createFont(int fontFormat, InputStream is)
Creates a new font with point size 1 and PLAIN style, reading font data from the provided input stream.
Font
Font.decode(String fontspec)
Creates a Font object from the specified string, which is in one of the following formats:

  • fontname-style-pointsize
  • fontname-style
  • fontname-pointsize
  • fontname

The style should be one of BOLD, ITALIC, or BOLDITALIC.

Font
Font.deriveFont(extends AttributedCharacterIterator.Attribute, ?> attributes)
Produces a new Font based on the current font, adjusted to a new set of attributes.
Font
Font.deriveFont(float size)
Produces a new Font based on the current font, adjusted to a new size.
Font
Font.deriveFont(int style)
Produces a new Font based on the current font, adjusted to a new style.
Font
Font.deriveFont(int style, float size)
Produces a new Font based on the current font, adjusted to a new size and style.
Font
Produces a new Font based on the current font, adjusted to a new style and subjected to a new affine transformation.
Font
Produces a new Font based on the current font, subjected to a new affine transformation.
Font[]
Returns an array of the one-point size fonts available in this environment.
Font
Returns the font in use for this component.
Font
Gets the font.
Font
Returns the font that this object is creating metric information fo.
Font
Returns the current font for this graphics context.
Font
Returns the font in use for this component.
Font
Returns the Font used for text created by this component.
Font
Returns the font in use by this container.
Font
Font.getFont(extends AttributedCharacterIterator.Attribute, ?> attributes)
Returns a font appropriate for the given attribute set.
Font
Font.getFont(String propname)
Returns a Font object from the passed property name.
Font
Font.getFont(String propname, Font defval)
Returns a Font object from the passed property name.

Uses in package javax.swing.table

Methods with parameter type java.awt.Font

FontMetrics
Get the FontMetrics of the specified font in this component.
void
Set the font of this component.

Methods with return type java.awt.Font

Font
Get the font of this component

Uses in package javax.swing.plaf

Classes derived from java.awt.Font

class
A font that is marked as UIResource, which indicates that it has been installed by a pluggable LookAndFeel.

Constructors with parameter type java.awt.Font

Constructs a new FontUIResource given an existing font.
BorderUIResource.TitledBorderUIResource.TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
Constructs a TitledBorder given its border, title text, horizontal alignment, vertical position, and font.
BorderUIResource.TitledBorderUIResource.TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
Constructs a TitledBorder given its border, title text, horizontal alignment, vertical position, font, and color.

Uses in package javax.swing.text.html

Methods with return type java.awt.Font

Font
Gets the font to use for the given set.

Uses in package javax.swing.tree

Fields of type java.awt.Font

Font
Font to paint with, null indicates font of renderer is to be used.

Methods with parameter type java.awt.Font

void
Sets the font to edit with. null indicates the renderers font should be used.
void
Sets the font.

Methods with return type java.awt.Font

Font
Gets the font used for editing.
Font
Gets the font of this component.
Font
Returns the current font.

Uses in package java.awt.font

Constructors with parameter type java.awt.Font

Constructs a TextLayout.

Methods with return type java.awt.Font

Font
Font
MultipleMaster.deriveMMFont(float[] glyphWidths, float avgStemWidth, float typicalCapHeight, float typicalXHeight, float italicAngle)
Font

Uses in package javax.swing.plaf.basic

Fields of type java.awt.Font

Font
Font to be used when displaying menu item's accelerator.

Methods with parameter type java.awt.Font

void
BasicTabbedPaneUI.paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)
This method paints the text for the given tab.

Uses in package javax.accessibility

Methods with parameter type java.awt.Font

FontMetrics
Get the FontMetrics of the specified font in this component.
void
Set the font of this component.

Methods with return type java.awt.Font

Font
Get the font of this component

Uses in package javax.swing.plaf.synth

Methods with parameter type java.awt.Font

int
Returns the width of the string text for the specified font and font metrics.
Dimension
SynthGraphicsUtils.getMaximumSize(SynthContext ctx, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)
Calculates the maximum size that is needed to render the label with text and icon correctly.
Dimension
SynthGraphicsUtils.getMinimumSize(SynthContext ctx, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)
Calculates the minimums size that is needed to render the label with text and icon correctly.
Dimension
SynthGraphicsUtils.getPreferredSize(SynthContext ctx, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)
Calculates the preferred size that is needed to render the label with text and icon correctly.

Methods with return type java.awt.Font

Font
Font

Uses in package javax.swing.text

Methods with parameter type java.awt.Font

FontMetrics

Methods with return type java.awt.Font

Font
Returns the font for the text run for which this GlyphView is responsible.
Font
Returns the font for the glyphs.
Font
StyleContext.getFont(String family, int style, int size)
Font
Extracts a font from a set of attributes.
Font
Font
getFont

Uses in package javax.swing

Methods with parameter type java.awt.Font

TitledBorder
BorderFactory.createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
Add 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.
TitledBorder
BorderFactory.createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
Add a title to an existing border, specifying the text of the title along with its positioning, font, and color.
FontMetrics
Returns the font metrics for a given font.
FontMetrics
Returns the font metrics for the specified font.
FontMetrics
Returns the font metrics for a specified font.
FontMetrics
Gets the FontMetrics of this object.
void
setFont
void
Set the value of the font property.
void
Sets the font for the label (this a bound property with the name 'font').
void
Does nothing since it is not possible to set the font on list children individually.
void
Sets the font of the cell.
void
Sets the current font and revalidates so the font will take effect.
void
Sets the Font of this object.

Methods with return type java.awt.Font

Font
getFont
Font
Returns the font of the JList since it is not possible to set fonts for list children individually.
Font
Returns the font of the table cell.
Font
Gets the Font of this object.
Font
Returns a font entry for the default locale.
Font
Retrieves a font from the defaults table of the current LookAndFeel.
Font
Returns a font entry for a specic locale.
Font
Retrieves a font from the defaults table of the current LookAndFeel.