All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vnr.awt.FontChooser

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----vnr.awt.FontChooser

public class FontChooser
extends JComponent
implements ActionListener

Variable Index

 o FONT_PROPERTY_NAME
 o fontList
 o fontSize
 o fontStyle
 o propertySupport

Constructor Index

 o FontChooser()

Method Index

 o actionPerformed(ActionEvent)
respond to combo box selections
 o addPropertyChangeListener(PropertyChangeListener)
add a new font listener
 o firePropertyChange(String, Object, Object)
fire a font changed message to all registered listeners
 o getCurrentFont()
 o removePropertyChangeListener(PropertyChangeListener)
remove a listener from the component's list
 o setCurrentFont(Font)
change current font to new one and set drop downs accordingly

Variables

 o fontList
 protected JComboBox fontList
 o fontSize
 protected JComboBox fontSize
 o fontStyle
 protected JComboBox fontStyle
 o propertySupport
 protected PropertyChangeSupport propertySupport
 o FONT_PROPERTY_NAME
 public static final String FONT_PROPERTY_NAME

Constructors

 o FontChooser
 public FontChooser()

Methods

 o addPropertyChangeListener
 public void addPropertyChangeListener(PropertyChangeListener pcl)
add a new font listener

Overrides:
addPropertyChangeListener in class JComponent
 o removePropertyChangeListener
 public void removePropertyChangeListener(PropertyChangeListener pcl)
remove a listener from the component's list

Overrides:
removePropertyChangeListener in class JComponent
 o firePropertyChange
 public void firePropertyChange(String name,
                                Object old,
                                Object $new)
fire a font changed message to all registered listeners

Overrides:
firePropertyChange in class JComponent
 o actionPerformed
 public void actionPerformed(ActionEvent ae)
respond to combo box selections

 o setCurrentFont
 public void setCurrentFont(Font f)
change current font to new one and set drop downs accordingly

 o getCurrentFont
 public Font getCurrentFont()

All Packages  Class Hierarchy  This Package  Previous  Next  Index