org.argouml.uml.diagram.state.ui
Class ActionCreatePseudostate

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.tigris.gef.base.Cmd
          extended byorg.tigris.gef.base.CmdCreateNode
              extended byorg.argouml.ui.CmdCreateNode
                  extended byorg.argouml.uml.diagram.state.ui.ActionCreatePseudostate
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, org.tigris.gef.graph.GraphFactory, Serializable

public class ActionCreatePseudostate
extends CmdCreateNode

An Action to create a Pseudostate of some kind.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
 
Fields inherited from class org.argouml.ui.CmdCreateNode
 
Fields inherited from class org.tigris.gef.base.CmdCreateNode
DEFAULT_NODE_CLASS
 
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
ActionCreatePseudostate(Object kind, String name)
          Construct a new Cmd with the given classes for the NetNode and its FigNode.
 
Method Summary
 Object makeNode()
          Actually instanciate the NetNode and FigNode objects and set the global next mode to ModePlace TODO: should call super, reduce code volume!
 
Methods inherited from class org.argouml.ui.CmdCreateNode
 
Methods inherited from class org.tigris.gef.base.CmdCreateNode
doIt, getActiveGraphModel, makeEdge, makeGraphModel, 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

ActionCreatePseudostate

public ActionCreatePseudostate(Object kind,
                               String name)
Construct a new Cmd with the given classes for the NetNode and its FigNode.

Parameters:
kind - the pseudostatekind
name - the name of this kind of pseudostate
Method Detail

makeNode

public Object makeNode()
Actually instanciate the NetNode and FigNode objects and set the global next mode to ModePlace TODO: should call super, reduce code volume!

Specified by:
makeNode in interface org.tigris.gef.graph.GraphFactory
Overrides:
makeNode in class CmdCreateNode
Returns:
an object which represents a particular UML Element.
See Also:
GraphFactory.makeNode()


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook