javax.swing.plaf
Class FontUIResource

java.lang.Object
  extended by java.awt.Font
      extended by javax.swing.plaf.FontUIResource
All Implemented Interfaces:
Serializable, UIResource

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.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.Font
BOLD, CENTER_BASELINE, DIALOG, DIALOG_INPUT, HANGING_BASELINE, ITALIC, LAYOUT_LEFT_TO_RIGHT, LAYOUT_NO_LIMIT_CONTEXT, LAYOUT_NO_START_CONTEXT, LAYOUT_RIGHT_TO_LEFT, MONOSPACED, name, PLAIN, pointSize, ROMAN_BASELINE, SANS_SERIF, SERIF, size, style, TRUETYPE_FONT, TYPE1_FONT
 
Constructor Summary
FontUIResource(Font f)
          Constructs a new FontUIResource given an existing font.
FontUIResource(String name, int style, int size)
          Constructs a new FontUIResource given the name, style and size of the font.
 
Method Summary
 
Methods inherited from class java.awt.Font
canDisplay, canDisplay, canDisplayUpTo, canDisplayUpTo, canDisplayUpTo, createFont, createFont, createGlyphVector, createGlyphVector, createGlyphVector, createGlyphVector, decode, deriveFont, deriveFont, deriveFont, deriveFont, deriveFont, deriveFont, equals, getAttributes, getAvailableAttributes, getBaselineFor, getFamily, getFamily, getFont, getFont, getFont, getFontName, getFontName, getItalicAngle, getLineMetrics, getLineMetrics, getLineMetrics, getLineMetrics, getMaxCharBounds, getMissingGlyphCode, getName, getNumGlyphs, getPeer, getPSName, getSize, getSize2D, getStringBounds, getStringBounds, getStringBounds, getStringBounds, getStyle, getTransform, hashCode, hasLayoutAttributes, hasUniformLineMetrics, isBold, isItalic, isPlain, isTransformed, layoutGlyphVector, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 Font.BOLD or 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.