uci.gef
Class CmdSetMode

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--uci.gef.Cmd
              |
              +--uci.gef.CmdSetMode

public class CmdSetMode
extends Cmd

Cmd that sets the next global editor mode. The global editor mode effects the next editor that you move the mouse into. For example, in PaletteFig the Line button sets the next global mode to ModeCreateFigLine.

See Also:
PaletteFig, Serialized Form

Field Summary
protected  Hashtable _modeArgs
          Arguments to pass to the new mode instance after creation.
 
Fields inherited from class uci.gef.Cmd
_args, HAS_ICON, NO_ICON
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Constructor Summary
CmdSetMode(Class modeClass)
          Set the next global mode to the named mode.
CmdSetMode(Class modeClass, boolean sticky)
          Set the next global mode to the named mode, and maybe make it sticky.
CmdSetMode(Class modeClass, Hashtable modeArgs)
          Set the next global mode to the named mode, and set all arguments.
CmdSetMode(Class modeClass, String name)
           
CmdSetMode(Class modeClass, String arg, Object value)
           
CmdSetMode(Class modeClass, String arg, Object value, String name)
           
CmdSetMode(Class modeClass, String arg, Object value, String name, ImageIcon icon)
           
CmdSetMode(Properties args)
           
 
Method Summary
 void doIt()
           
 void undoIt()
           
 
Methods inherited from class uci.gef.Cmd
about, actionPerformed, cmdAtIndex, containsArg, getArg, getArg, getName, register, registeredCmds, setArg, setName, shouldBeEnabled, updateEnabled
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_modeArgs

protected Hashtable _modeArgs
Arguments to pass to the new mode instance after creation.
Constructor Detail

CmdSetMode

public CmdSetMode(Properties args)

CmdSetMode

public CmdSetMode(Class modeClass)
Set the next global mode to the named mode.

CmdSetMode

public CmdSetMode(Class modeClass,
                  String name)

CmdSetMode

public CmdSetMode(Class modeClass,
                  boolean sticky)
Set the next global mode to the named mode, and maybe make it sticky.

CmdSetMode

public CmdSetMode(Class modeClass,
                  Hashtable modeArgs)
Set the next global mode to the named mode, and set all arguments.

CmdSetMode

public CmdSetMode(Class modeClass,
                  String arg,
                  Object value)

CmdSetMode

public CmdSetMode(Class modeClass,
                  String arg,
                  Object value,
                  String name)

CmdSetMode

public CmdSetMode(Class modeClass,
                  String arg,
                  Object value,
                  String name,
                  ImageIcon icon)
Method Detail

doIt

public void doIt()
Overrides:
doIt in class Cmd

undoIt

public void undoIt()
Overrides:
undoIt in class Cmd