org.argouml.uml.diagram.ui
Class ActionAddAssociation

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.tigris.gef.base.Cmd
          extended byorg.tigris.gef.base.CmdSetMode
              extended byorg.argouml.uml.diagram.ui.ActionAddAssociation
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class ActionAddAssociation
extends org.tigris.gef.base.CmdSetMode

The ActionAddAssociation class is for creating a dummy link with a stimulus and a given action type. This is done in one step when a new edge between two nodes is instanciated

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.tigris.gef.base.CmdSetMode
_modeArgs
 
Fields inherited from class org.tigris.gef.base.Cmd
_args, _resource
 
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
ActionAddAssociation(ru.novosoft.uml.foundation.data_types.MAggregationKind aggregation, boolean unidirectional, java.lang.String name)
          Construct a new ActionAddAssociation
 
Methods inherited from class org.tigris.gef.base.CmdSetMode
doIt, undoIt
 
Methods inherited from class org.tigris.gef.base.Cmd
about, actionPerformed, cmdAtIndex, containsArg, getArg, getArg, getName, getResource, register, registeredCmds, setArg, setName, setResource, shouldBeEnabled, updateEnabled
 
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
 

Constructor Detail

ActionAddAssociation

public ActionAddAssociation(ru.novosoft.uml.foundation.data_types.MAggregationKind aggregation,
                            boolean unidirectional,
                            java.lang.String name)
Construct a new ActionAddAssociation

Parameters:
aggregation - the required aggregation for the association.
unidirectional - true if this is to create a unidirectional association
name - the action description


ArgoUML © 1996-2003 (20030829)ArgoUML Project HomeArgoUML Cookbook