javax.swing.plaf
public class FontUIResource extends Font implements UIResource
UIResource
, which
indicates that it has been installed by a pluggable
LookAndFeel. Such dimensions are replaced when the LookAndFeel
changes.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 and Description |
---|
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. |
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
public FontUIResource(String name, int style, int size)
FontUIResource
given
the name, style and size of the font.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.public FontUIResource(Font f)
FontUIResource
given
an existing font.f
- the font that serves as a template.