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

pack-priv final Class MetalFontDesktopProperty

extends DesktopProperty
Class Inheritance
Imports
java.awt.Font, sun.swing.plaf.DesktopProperty

DesktopProperty that only uses font height in configuring font. This is only used on Windows.

Field Summary

Modifier and TypeField and Description
private static final String[]
propertyMapping

Maps from metal font theme type as defined in MetalTheme to the corresponding desktop property name.

private int
type

Corresponds to a MetalTheme font type.

Constructor Summary

AccessConstructor and Description
pack-priv
MetalFontDesktopProperty(int
MetalTheme font type.
type
)

Creates a MetalFontDesktopProperty.

pack-priv
MetalFontDesktopProperty(String
Key used in looking up desktop value.
key
,
int
Type of font being used, corresponds to MetalTheme font type.
type
)

Creates a MetalFontDesktopProperty.

Method Summary

Modifier and TypeMethod and Description
protected Object
configureValue(Object value)

Overrides sun.swing.plaf.DesktopProperty.configureValue.

Overridden to create a Font with the size coming from the desktop and the style and name coming from DefaultMetalTheme.

protected Object
Inherited from sun.swing.plaf.DesktopProperty:
createValueflushUnreferencedPropertiesgetKeygetValueFromDesktopinvalidateinvalidateupdateAllUIsupdateUI

Field Detail

propertyMappingback to summary
private static final String[] propertyMapping

Maps from metal font theme type as defined in MetalTheme to the corresponding desktop property name.

typeback to summary
private int type

Corresponds to a MetalTheme font type.

Constructor Detail

MetalFontDesktopPropertyback to summary
pack-priv MetalFontDesktopProperty(int type)

Creates a MetalFontDesktopProperty. The key used to lookup the desktop property is determined from the type of font.

Parameters
type:int

MetalTheme font type.

MetalFontDesktopPropertyback to summary
pack-priv MetalFontDesktopProperty(String key, int type)

Creates a MetalFontDesktopProperty.

Parameters
key:String

Key used in looking up desktop value.

type:int

Type of font being used, corresponds to MetalTheme font type.

Method Detail

configureValueback to summary
protected Object configureValue(Object value)

Overrides sun.swing.plaf.DesktopProperty.configureValue.

Overridden to create a Font with the size coming from the desktop and the style and name coming from DefaultMetalTheme.

getDefaultValueback to summary
protected Object getDefaultValue()

Overrides sun.swing.plaf.DesktopProperty.getDefaultValue.

Returns the default font.