SEdit
Class Command
java.lang.Object
SEdit.Command
- All Implemented Interfaces:
- Executable
- Direct Known Subclasses:
- FunctionCommand, MethodCallCommand, NewArrowCommand, NewNodeCommand, SelectionCommand
- public class Command
- extends Object
- implements Executable
The description of an action that might be requested on a whole
structure or on a single element (node or arrow). Usually defined
in the formalism file
action
protected String action
desc
protected String desc
icon
protected String icon
Command
public Command()
Command
public Command(String value)
Command
public Command(String value,
String description)
Command
public Command(String value,
String description,
String iconlocation)
getAction
public String getAction()
getDescription
public String getDescription()
getIcon
public String getIcon()
hasDescription
public boolean hasDescription()
hasIcon
public boolean hasIcon()
toString
public String toString()
execute
public void execute()
- Description copied from interface:
Executable
- This method executes the command.
- Specified by:
execute
in interface Executable
Copyright © J. Ferber, O. Gutknecht All Rights Reserved.