org.jhotdraw.draw.action
Class AbstractSelectedAction
java.lang.Object
javax.swing.AbstractAction
org.jhotdraw.draw.action.AbstractSelectedAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
- Direct Known Subclasses:
- AlignAction, ApplyAttributesAction, AttributeAction, DefaultAttributeAction, EditorColorChooserAction, GroupAction, MoveAction, MoveConstrainedAction, MoveToBackAction, MoveToFrontAction, PickAttributesAction, SelectSameAction
public abstract class AbstractSelectedAction
- extends javax.swing.AbstractAction
Abstract super class for actions which act on the selected figures of a drawing
editor. If no figures are selected, the action is disabled.
- Version:
- 3.1.1. 2006-07-09 Fixed enabled state.
3.1 2006-03-15 Support for enabled state of view added.
3.0 2006-02-24 Changed to support multiple views.
2.0 2006-02-14 Updated to work with multiple views.
1.0 2003-12-01 Created.
- Author:
- Werner Randelshofer
- 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, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, 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 |
Methods inherited from interface java.awt.event.ActionListener |
actionPerformed |
labels
protected ResourceBundleUtil labels
AbstractSelectedAction
public AbstractSelectedAction(DrawingEditor editor)
- Creates an action which acts on the selected figures on the current view
of the specified editor.
updateEnabledState
protected void updateEnabledState()
dispose
public void dispose()
setEditor
public void setEditor(DrawingEditor editor)
getEditor
public DrawingEditor getEditor()
getView
protected DrawingView getView()
getDrawing
protected Drawing getDrawing()
fireUndoableEditHappened
protected void fireUndoableEditHappened(javax.swing.undo.UndoableEdit edit)