org.jhotdraw.draw.action
Class FontChooserHandler
java.lang.Object
javax.swing.AbstractAction
org.jhotdraw.draw.action.AbstractSelectedAction
org.jhotdraw.draw.action.FontChooserHandler
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, Disposable
public class FontChooserHandler
- extends AbstractSelectedAction
- implements java.beans.PropertyChangeListener
FontChooserHandler.
- Author:
- Werner Randelshofer
@version $Id: FontChooserHandler.java 564 2009-10-10 10:21:01Z rawcoder $
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
key
protected AttributeKey<java.awt.Font> key
fontChooser
protected JFontChooser fontChooser
popupMenu
protected javax.swing.JPopupMenu popupMenu
isUpdating
protected int isUpdating
FontChooserHandler
public FontChooserHandler(DrawingEditor editor,
AttributeKey<java.awt.Font> key,
JFontChooser fontChooser,
javax.swing.JPopupMenu popupMenu)
- Creates a new instance.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent evt)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
applySelectedFontToFigures
protected void applySelectedFontToFigures()
updateEnabledState
protected void updateEnabledState()
- Description copied from class:
AbstractSelectedAction
- Updates the enabled state of this action to reflect the enabled state
of the active
DrawingView
. If no drawing view is active, this
action is disabled.
- Overrides:
updateEnabledState
in class AbstractSelectedAction
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange
in interface java.beans.PropertyChangeListener