CH.ifa.draw.figures
Class GroupCommand

java.lang.Object
  extended by CH.ifa.draw.util.Command
      extended by CH.ifa.draw.figures.GroupCommand

public class GroupCommand
extends Command

Command to group the selection into a GroupFigure.

See Also:
GroupFigure

Constructor Summary
GroupCommand(java.lang.String name, DrawingView view)
          Constructs a group command.
 
Method Summary
 void execute()
          Executes the command.
 boolean isExecutable()
          Tests if the command can be executed.
 
Methods inherited from class CH.ifa.draw.util.Command
name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupCommand

public GroupCommand(java.lang.String name,
                    DrawingView view)
Constructs a group command.

Parameters:
name - the command name
view - the target view
Method Detail

execute

public void execute()
Description copied from class: Command
Executes the command.

Specified by:
execute in class Command

isExecutable

public boolean isExecutable()
Description copied from class: Command
Tests if the command can be executed.

Overrides:
isExecutable in class Command