Class SwingFont
java.lang.Object
java.awt.Font
com.jformdesigner.model.SwingFont
- All Implemented Interfaces:
SwingResource, Serializable
Used to specify fonts from the Swing font palette.
Invokes
UIManager.getFont(key) to get the real font.
This class extends java.awt.Font so that it can be used everywhere, but especially as title font in TitledBorder.
- Since:
- 3.0
- See Also:
-
Field Summary
Fields inherited from class 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
Constructors -
Method Summary
Methods inherited from class Font
canDisplay, canDisplay, canDisplayUpTo, canDisplayUpTo, canDisplayUpTo, createFont, createFont, createFonts, createFonts, createGlyphVector, createGlyphVector, createGlyphVector, createGlyphVector, decode, deriveFont, deriveFont, deriveFont, deriveFont, deriveFont, deriveFont, getAttributes, getAvailableAttributes, getBaselineFor, getFamily, getFamily, getFont, getFont, getFont, getFontName, getFontName, getItalicAngle, getLineMetrics, getLineMetrics, getLineMetrics, getLineMetrics, getMaxCharBounds, getMissingGlyphCode, getName, getNumGlyphs, getPSName, getSize, getSize2D, getStringBounds, getStringBounds, getStringBounds, getStringBounds, getStyle, getTransform, hasLayoutAttributes, hasUniformLineMetrics, isBold, isItalic, isPlain, isTransformed, layoutGlyphVector, textRequiresLayout
-
Constructor Details
-
SwingFont
Constructs a font from the Swing font palette.- Parameters:
key- The name of the Swing font.
-
-
Method Details
-
getKey
Returns The name of the Swing font. -
equals
-
hashCode
-
toString
-