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. |
|
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)
|
| Methods inherited from class uci.gef.Cmd |
about,
actionPerformed,
cmdAtIndex,
containsArg,
getArg,
getArg,
getName,
register,
registeredCmds,
setArg,
setName,
shouldBeEnabled,
updateEnabled |
_modeArgs
protected Hashtable _modeArgs
- Arguments to pass to the new mode instance after creation.
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)
doIt
public void doIt()
- Overrides:
- doIt in class Cmd
undoIt
public void undoIt()
- Overrides:
- undoIt in class Cmd