org.argouml.ui
Class ActionCreateEdgeModelElement
java.lang.Object
javax.swing.AbstractAction
org.argouml.ui.ActionCreateEdgeModelElement
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class ActionCreateEdgeModelElement
- extends javax.swing.AbstractAction
An action to create a relation between 2 model elements.
- 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 |
|
Constructor Summary |
ActionCreateEdgeModelElement(java.lang.Object theMetaType,
java.lang.Object theSource,
java.lang.Object theDestination,
java.lang.String relationshipDescr)
Create a new model element which in graph terminology is an edge,
ie a model element that links two other model elements and makes
no sense to exist by itelf. |
| 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 |
ActionCreateEdgeModelElement
public ActionCreateEdgeModelElement(java.lang.Object theMetaType,
java.lang.Object theSource,
java.lang.Object theDestination,
java.lang.String relationshipDescr)
- Create a new model element which in graph terminology is an edge,
ie a model element that links two other model elements and makes
no sense to exist by itelf.
- Parameters:
theMetaType - The type of model element to createtheSource - The source model element to linktheDestination - The destination model element to linkrelationshipDescr - A textual description that describes how
source relates to destination
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)