javax.swing.plaf.metal
Class DefaultMetalTheme.WindowsFontDelegate

java.lang.Object
  extended byjavax.swing.plaf.metal.DefaultMetalTheme.FontDelegate
      extended byjavax.swing.plaf.metal.DefaultMetalTheme.WindowsFontDelegate
Enclosing class:
DefaultMetalTheme

private static class DefaultMetalTheme.WindowsFontDelegate
extends DefaultMetalTheme.FontDelegate

The WindowsFontDelegate uses DesktopProperties to obtain fonts.


Field Summary
private  boolean[] checkedPriviledged
           
(package private)  FontUIResource[] fonts
           
private  MetalFontDesktopProperty[] props
           
 
Constructor Summary
DefaultMetalTheme.WindowsFontDelegate()
           
 
Method Summary
 FontUIResource getFont(int type)
           
protected  Font getPrivilegedFont(int key)
          This is the same as invoking Font.getFont(key), with the exception that it is wrapped inside a doPrivileged call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

props

private MetalFontDesktopProperty[] props

checkedPriviledged

private boolean[] checkedPriviledged

fonts

FontUIResource[] fonts
Constructor Detail

DefaultMetalTheme.WindowsFontDelegate

public DefaultMetalTheme.WindowsFontDelegate()
Method Detail

getFont

public FontUIResource getFont(int type)
Overrides:
getFont in class DefaultMetalTheme.FontDelegate

getPrivilegedFont

protected Font getPrivilegedFont(int key)
This is the same as invoking Font.getFont(key), with the exception that it is wrapped inside a doPrivileged call.