javax.swing.plaf.metal
Class DefaultMetalTheme.FontDelegate

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

private static class DefaultMetalTheme.FontDelegate
extends Object

FontDelegates add an extra level of indirection to obtaining fonts.


Field Summary
private static int[] defaultMapping
           
(package private)  FontUIResource[] fonts
           
 
Constructor Summary
DefaultMetalTheme.FontDelegate()
           
 
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

defaultMapping

private static int[] defaultMapping

fonts

FontUIResource[] fonts
Constructor Detail

DefaultMetalTheme.FontDelegate

public DefaultMetalTheme.FontDelegate()
Method Detail

getFont

public FontUIResource getFont(int type)

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.