CH.ifa.draw.standard
Class 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.
-
-
Constructor Summary
Constructors Constructor and Description ChangeAttributeCommand(java.lang.String name, java.lang.String attributeName, java.lang.Object value, DrawingView view)Constructs a change attribute command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidexecute()Executes the command.booleanisExecutable()Tests if the command can be executed.
-
-
-
Constructor Detail
-
ChangeAttributeCommand
public ChangeAttributeCommand(java.lang.String name, java.lang.String attributeName, java.lang.Object value, DrawingView view)Constructs a change attribute command.- Parameters:
name- the command nameattributeName- the name of the attribute to be changedvalue- the new attribute valueview- the target view
-
-
Method Detail
-
execute
public void execute()
Description copied from class:CommandExecutes the command.
-
isExecutable
public boolean isExecutable()
Description copied from class:CommandTests if the command can be executed.- Overrides:
isExecutablein classCommand
-
-
DataMelt 3.0 © DataMelt by jWork.ORG