interfaces
Interface IShapeDrawer

All Known Subinterfaces:
IShape
All Known Implementing Classes:
CircleShape, ColorDecorator, RectangleShape, ShapeDecorator, ShapeGraphicsDrawer, TriangleShape

public interface IShapeDrawer

Interface for Drawing shape using graphics object

Version:
1.0, 31-Mar-07
Author:
Prathab

Method Summary
 void drawShape()
          Draws the shape based on the operations stored in command object
 void setCommandObject(Command command)
          Set the Command object which contains the commands to draw the shape
 void setGraphicsObject(java.awt.Graphics g)
          Set the Graphics object which is responsible to draw the graphics
 

Method Detail

setGraphicsObject

void setGraphicsObject(java.awt.Graphics g)
Set the Graphics object which is responsible to draw the graphics

Parameters:
g - Graphics object to be set

setCommandObject

void setCommandObject(Command command)
Set the Command object which contains the commands to draw the shape

Parameters:
command - Command object to set

drawShape

void drawShape()
Draws the shape based on the operations stored in command object