edu.upenn.cis.pdtb.graphics
Class FontProvider
java.lang.Object
edu.upenn.cis.pdtb.graphics.FontProvider
- public class FontProvider
- extends java.lang.Object
Provides the global font. Maintains only WeakReferences to the listeners
so that they can be garbage collected without an explicit remove notification.
- Author:
- nikhild
|
Constructor Summary |
FontProvider()
Creates a new instance of FontProvider |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fListeners
public java.util.HashSet fListeners
PDTBBrowserFontProvider
public static final FontProvider PDTBBrowserFontProvider
FontProvider
public FontProvider()
- Creates a new instance of FontProvider
addListener
public void addListener(FontChangeListener l)
removeListener
public void removeListener(FontChangeListener l)
getCurrentFont
public java.awt.Font getCurrentFont()
setCurrentFont
public void setCurrentFont(java.awt.Font newFont)