All Packages Class Hierarchy This Package Previous Next Index
Class CH.ifa.draw.standard.ChangeAttributeCommand
java.lang.Object
|
+----CH.ifa.draw.util.Command
|
+----CH.ifa.draw.standard.ChangeAttributeCommand
- public class ChangeAttributeCommand
- extends Command
Command to change a named figure attribute.
-
ChangeAttributeCommand(String, String, Object, DrawingView)
- Constructs a change attribute command.
-
execute()
- Executes the command.
-
isExecutable()
- Tests if the command can be executed.
ChangeAttributeCommand
public ChangeAttributeCommand(String name,
String attributeName,
Object value,
DrawingView view)
- Constructs a change attribute command.
- Parameters:
- name - the command name
- attributeName - the name of the attribute to be changed
- value - the new attribute value
- view - the target view
execute
public void execute()
- Executes the command.
- Overrides:
- execute in class Command
isExecutable
public boolean isExecutable()
- Tests if the command can be executed.
- Overrides:
- isExecutable in class Command
All Packages Class Hierarchy This Package Previous Next Index