public class FontChooserHandler extends AbstractSelectedAction implements java.beans.PropertyChangeListener
| Modifier and Type | Field and Description |
|---|---|
protected JFontChooser |
fontChooser |
protected int |
isUpdating |
protected AttributeKey<java.awt.Font> |
key |
protected javax.swing.JPopupMenu |
popupMenu |
| Constructor and Description |
|---|
FontChooserHandler(DrawingEditor editor,
AttributeKey<java.awt.Font> key,
JFontChooser fontChooser,
javax.swing.JPopupMenu popupMenu)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt) |
protected void |
applySelectedFontToFigures() |
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
protected void |
updateEnabledState()
Updates the enabled state of this action to reflect the enabled state
of the active
DrawingView. |
dispose, fireUndoableEditHappened, getDrawing, getEditor, getView, isUpdatEnabledState, setEditor, setUpdateEnabledStateprotected AttributeKey<java.awt.Font> key
protected JFontChooser fontChooser
protected javax.swing.JPopupMenu popupMenu
protected int isUpdating
public FontChooserHandler(DrawingEditor editor, AttributeKey<java.awt.Font> key, JFontChooser fontChooser, javax.swing.JPopupMenu popupMenu)
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed in interface java.awt.event.ActionListenerprotected void applySelectedFontToFigures()
protected void updateEnabledState()
AbstractSelectedActionDrawingView. If no drawing view is active, this
action is disabled.updateEnabledState in class AbstractSelectedActionpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListener