org.rosuda.JGR.toolkit
Class FontTracker

java.lang.Object
  extended by org.rosuda.JGR.toolkit.FontTracker

public class FontTracker
extends java.lang.Object

FontTracker - collect all componentes and apply prefs-font to them

Author:
Markus Helbig RoSuDa 2003 - 2005

Field Summary
static FontTracker current
           
 
Constructor Summary
FontTracker()
           
 
Method Summary
 void add(java.awt.Component comp)
          Add a component to the list.
 void add(javax.swing.JComponent comp)
          Add a component to the list.
 void applyFont()
          Apply font, fontsize from JGRPrefs to components contained in the tracker.
 void setFontBigger()
          Increase fontsize, current step is 2.
 void setFontSmaller()
          Decrease fontsize, current step is 2.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

current

public static FontTracker current
Constructor Detail

FontTracker

public FontTracker()
Method Detail

add

public void add(java.awt.Component comp)
Add a component to the list.

Parameters:
comp - component to add

add

public void add(javax.swing.JComponent comp)
Add a component to the list.

Parameters:
comp - component to add

setFontBigger

public void setFontBigger()
Increase fontsize, current step is 2.


setFontSmaller

public void setFontSmaller()
Decrease fontsize, current step is 2.


applyFont

public void applyFont()
Apply font, fontsize from JGRPrefs to components contained in the tracker.