APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.plaf

public Class FontUIResource

extends Font
implements UIResource
Class Inheritance
All Implemented Interfaces
javax.swing.plaf.UIResource
Annotations
@SuppressWarnings:serial
Imports
java.awt.Font, javax.swing.plaf.UIResource

A subclass of java.awt.Font that implements UIResource. UI classes which set default font properties should use this class.

Warning

Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans has been added to the java.beans package. Please see java.beans.XMLEncoder.

Author
Hans Muller
See Also
javax.swing.plaf.UIResource

Field Summary

Inherited from java.awt.Font:
BOLDCENTER_BASELINEDIALOGDIALOG_INPUTHANGING_BASELINEITALICLAYOUT_LEFT_TO_RIGHTLAYOUT_NO_LIMIT_CONTEXTLAYOUT_NO_START_CONTEXTLAYOUT_RIGHT_TO_LEFTMONOSPACEDnamePLAINpointSizeROMAN_BASELINESANS_SERIFSERIFsizestyleTRUETYPE_FONTTYPE1_FONT

Constructor Summary

AccessConstructor and Description
public
FontUIResource(String
the font name
name
,
int
the style constant for the font
style
,
int
the point size of the font
size
)

Constructs a FontUIResource.

public
FontUIResource(Font
the font
font
)

Constructs a FontUIResource.

Method Summary

Inherited from java.awt.Font:
canDisplaycanDisplaycanDisplayUpTocanDisplayUpTocanDisplayUpTocreateFontcreateFontcreateFontscreateFontscreateGlyphVectorcreateGlyphVectorcreateGlyphVectorcreateGlyphVectordecodederiveFontderiveFontderiveFontderiveFontderiveFontderiveFontequalsgetAttributesgetAvailableAttributesgetBaselineForgetFamilygetFamilygetFontgetFontgetFontgetFontNamegetFontNamegetItalicAnglegetLineMetricsgetLineMetricsgetLineMetricsgetLineMetricsgetMaxCharBoundsgetMissingGlyphCodegetNamegetNumGlyphsgetPSNamegetSizegetSize2DgetStringBoundsgetStringBoundsgetStringBoundsgetStringBoundsgetStylegetTransformhashCodehasLayoutAttributeshasUniformLineMetricsisBoldisItalicisPlainisTransformedlayoutGlyphVectortextRequiresLayouttoString

Constructor Detail

FontUIResourceback to summary
public FontUIResource(String name, int style, int size)

Constructs a FontUIResource.

Parameters
name:String

the font name

style:int

the style constant for the font

size:int

the point size of the font

FontUIResourceback to summary
public FontUIResource(Font font)

Constructs a FontUIResource.

Parameters
font:Font

the font