templates.diagram.actions
Class DiagramActions.MatchEventsAction
java.lang.Object
javax.swing.AbstractAction
templates.diagram.actions.AbstractDiagramAction
templates.diagram.actions.DiagramActions.MatchEventsAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
- Enclosing class:
- DiagramActions
public static class DiagramActions.MatchEventsAction
- extends AbstractDiagramAction
Action which replaces the TemplateLinks in a Connector
with TemplateLinks only between events with matching names.
- Author:
- Lenko Grigorov
- 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 |
diagram
protected TemplateDiagram diagram
- The
TemplateDiagram context to be used by the action.
connector
protected Connector connector
- The
Connector whose TemplateLinks should be replaced.
DiagramActions.MatchEventsAction
public DiagramActions.MatchEventsAction(TemplateDiagram diagram,
Connector connector)
- Construct an action for the given parameters.
- Parameters:
diagram - the TemplateDiagram to be used by the actionconnector - the Connector whose TemplateLinks should
be replaced
DiagramActions.MatchEventsAction
public DiagramActions.MatchEventsAction(javax.swing.undo.CompoundEdit parent,
TemplateDiagram diagram,
Connector connector)
- Construct an action for the given parameters.
- Parameters:
parent - the UndoableEdit to which this action should add
its own undo informationdiagram - the TemplateDiagram to be used by the actionconnector - the Connector whose TemplateLinks should
be replaced
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)