classes.shapes.commands
Class ShapeDrawCommands

java.lang.Object
  extended by classes.shapes.commands.ShapeDrawCommands
All Implemented Interfaces:
IShapeCommand

public class ShapeDrawCommands
extends java.lang.Object
implements IShapeCommand

Encapsulates the shape drawing commands and uses IShapeDrawer to draw the shapes.
Also act as the real object to draw the shapes.

Version:
1.0, 22-Mar-07
Author:
Prathab, Mukesh
See Also:
IShapeCommand, IShapeDrawer, Command

Constructor Summary
ShapeDrawCommands(IShapeDrawer shapeDrawer)
           
 
Method Summary
 void execute(Command command)
          Executes the Command object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeDrawCommands

public ShapeDrawCommands(IShapeDrawer shapeDrawer)
Method Detail

execute

public void execute(Command command)
Executes the Command object

Specified by:
execute in interface IShapeCommand
Parameters:
command - Command object that to be executed
See Also:
IShapeCommand.execute(types.Command)