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.


Constructor Index

 o ChangeAttributeCommand(String, String, Object, DrawingView)
Constructs a change attribute command.

Method Index

 o execute()
Executes the command.
 o isExecutable()
Tests if the command can be executed.

Constructors

 o 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

Methods

 o execute
 public void execute()
Executes the command.

Overrides:
execute in class Command
 o 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