javax.swing.plaf

Class FontUIResource

public class FontUIResource extends Font implements UIResource

A font that is marked as UIResource, which indicates that it has been installed by a pluggable LookAndFeel. Such dimensions are replaced when the LookAndFeel changes.
Constructor Summary
FontUIResource(String name, int style, int size)
Constructs a new FontUIResource given the name, style and size of the font.
FontUIResource(Font f)
Constructs a new FontUIResource given an existing font.

Constructor Detail

FontUIResource

public FontUIResource(String name, int style, int size)
Constructs a new FontUIResource given the name, style and size of the font.

Parameters: name the name of the font. A number of “logical” names are supported by any Java implementation. These are “Dialog”, “DialogInput”, “Monospaced”, “Serif”, and “SansSerif”. style the style of the font, for instance {@link java.awt.Font#BOLD} or {@link java.awt.Font#PLAIN}. size the size of the font in typographic points, for instance 10, 12 or 13. Designers of LookAndFeels should be aware that some languages (like Japanese and Chinese) have glyphs that are too complex to be legible at small point sizes.

FontUIResource

public FontUIResource(Font f)
Constructs a new FontUIResource given an existing font.

Parameters: f the font that serves as a template.