org.argouml.uml.diagram.ui
Class ActionSetMode

java.lang.Object
  extended by SetModeAction
      extended by org.argouml.uml.diagram.ui.ActionSetMode
Direct Known Subclasses:
ActionAddAssociationRole, ActionSetAddAssociationClassMode, ActionSetAddAssociationEndMode, ActionSetAddAssociationMode, ActionSetAddCommentLinkMode, ActionSetAddMessageMode

public class ActionSetMode
extends SetModeAction

Extends GEF ActionSetMode to add additional metadata such as tooltips.


Constructor Summary
ActionSetMode(java.lang.Class modeClass)
          The constructor.
ActionSetMode(java.lang.Class modeClass, boolean sticky)
          The constructor.
ActionSetMode(java.lang.Class modeClass, java.util.Hashtable modeArgs)
          The constructor.
ActionSetMode(java.lang.Class modeClass, java.util.Hashtable modeArgs, java.lang.String name)
          The constructor.
ActionSetMode(java.lang.Class modeClass, java.lang.String name)
          The constructor.
ActionSetMode(java.lang.Class modeClass, java.lang.String arg, java.lang.Object value)
          The constructor.
ActionSetMode(java.lang.Class modeClass, java.lang.String arg, java.lang.Object value, java.lang.String name)
          The constructor.
ActionSetMode(java.lang.Class modeClass, java.lang.String arg, java.lang.Object value, java.lang.String name, javax.swing.ImageIcon icon)
          The constructor.
ActionSetMode(java.lang.Class modeClass, java.lang.String name, java.lang.String tooltipkey)
          The constructor.
ActionSetMode(java.util.Properties args)
          The constructor.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionSetMode

public ActionSetMode(java.util.Properties args)
The constructor.

Parameters:
args - arguments

ActionSetMode

public ActionSetMode(java.lang.Class modeClass)
The constructor.

Parameters:
modeClass - the next global editor mode

ActionSetMode

public ActionSetMode(java.lang.Class modeClass,
                     java.lang.String name)
The constructor.

Parameters:
modeClass - the next global editor mode
name - the name of the icon

ActionSetMode

public ActionSetMode(java.lang.Class modeClass,
                     java.lang.String name,
                     java.lang.String tooltipkey)
The constructor.

Parameters:
modeClass - the next global editor mode
name - the icon name
tooltipkey - The key for the tooltip text.

ActionSetMode

public ActionSetMode(java.lang.Class modeClass,
                     boolean sticky)
The constructor.

Parameters:
modeClass - the next global editor mode
sticky - the global sticky mode boolean allows the user to place several nodes rapidly (in succession)

ActionSetMode

public ActionSetMode(java.lang.Class modeClass,
                     java.util.Hashtable modeArgs)
The constructor.

Parameters:
modeClass - the next global editor mode
modeArgs - arguments for the new mode

ActionSetMode

public ActionSetMode(java.lang.Class modeClass,
                     java.util.Hashtable modeArgs,
                     java.lang.String name)
The constructor. TODO: The "name" parameter is used for the icon and for the tooltip. This makes i18n of the tooltip impossible.

Parameters:
modeClass - the next global editor mode
modeArgs - arguments for the new mode
name - the name of the command that is the tooltip text.

ActionSetMode

public ActionSetMode(java.lang.Class modeClass,
                     java.lang.String arg,
                     java.lang.Object value)
The constructor.

Parameters:
modeClass - the next global editor mode
arg - the name of a new argument for the new mode
value - the value of a new argument for the new mode

ActionSetMode

public ActionSetMode(java.lang.Class modeClass,
                     java.lang.String arg,
                     java.lang.Object value,
                     java.lang.String name)
The constructor. TODO: The "name" parameter is used for the icon and for the tooltip. This makes i18n of the tooltip impossible.

Parameters:
modeClass - the next global editor mode
arg - the name of a new argument for the new mode
value - the value of a new argument for the new mode
name - the name of the command that is the tooltip text.

ActionSetMode

public ActionSetMode(java.lang.Class modeClass,
                     java.lang.String arg,
                     java.lang.Object value,
                     java.lang.String name,
                     javax.swing.ImageIcon icon)
The constructor.

Parameters:
modeClass - the next global editor mode
arg - the name of a new argument for the new mode
value - the value of a new argument for the new mode
name - the name of the command that is the tooltip text.
icon - the SMALL_ICON for the action


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook