javax.swing.plaf.metal
Class MetalFontDesktopProperty

java.lang.Object
  extended bycom.sun.java.swing.plaf.windows.DesktopProperty
      extended byjavax.swing.plaf.metal.MetalFontDesktopProperty
All Implemented Interfaces:
UIDefaults.ActiveValue

class MetalFontDesktopProperty
extends com.sun.java.swing.plaf.windows.DesktopProperty

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


Nested Class Summary
 
Nested classes inherited from class com.sun.java.swing.plaf.windows.DesktopProperty
 
Field Summary
private static 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.
 
Fields inherited from class com.sun.java.swing.plaf.windows.DesktopProperty
 
Constructor Summary
(package private) MetalFontDesktopProperty(int type)
          Creates a MetalFontDesktopProperty.
(package private) MetalFontDesktopProperty(String key, Toolkit kit, int type)
          Creates a MetalFontDesktopProperty.
 
Method Summary
protected  Object configureValue(Object value)
          Overriden to create a Font with the size coming from the desktop and the style and name coming from DefaultMetalTheme.
protected  Object getDefaultValue()
          Returns the default font.
 
Methods inherited from class com.sun.java.swing.plaf.windows.DesktopProperty
createValue, getKey, getValueFromDesktop, invalidate, updateUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyMapping

private static final String[] propertyMapping
Maps from metal font theme type as defined in MetalTheme to the corresponding desktop property name.


type

private int type
Corresponds to a MetalTheme font type.

Constructor Detail

MetalFontDesktopProperty

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

Parameters:
type - MetalTheme font type.

MetalFontDesktopProperty

MetalFontDesktopProperty(String key,
                         Toolkit kit,
                         int type)
Creates a MetalFontDesktopProperty.

Parameters:
key - Key used in looking up desktop value.
type - Type of font being used, corresponds to MetalTheme font type.
Method Detail

configureValue

protected Object configureValue(Object value)
Overriden to create a Font with the size coming from the desktop and the style and name coming from DefaultMetalTheme.


getDefaultValue

protected Object getDefaultValue()
Returns the default font.