CH.ifa.draw.figures
Class InsertImageCommand

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

public class InsertImageCommand
extends Command

Command to insert a named image.


Constructor Summary
InsertImageCommand(java.lang.String name, java.lang.String image, DrawingView view)
          Constructs an insert image command.
 
Method Summary
 void execute()
          Executes the command.
 
Methods inherited from class CH.ifa.draw.util.Command
isExecutable, name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertImageCommand

public InsertImageCommand(java.lang.String name,
                          java.lang.String image,
                          DrawingView view)
Constructs an insert image command.

Parameters:
name - the command name
image - the pathname of the image
view - the target view
Method Detail

execute

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

Specified by:
execute in class Command