classes.shapes.commands
Class ShapeGraphicsDrawer

java.lang.Object
  extended by classes.shapes.commands.ShapeGraphicsDrawer
All Implemented Interfaces:
IShapeDrawer

public class ShapeGraphicsDrawer
extends java.lang.Object
implements IShapeDrawer

Draws the shapes based on the Command objects using Graphics package

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

Constructor Summary
ShapeGraphicsDrawer()
           
 
Method Summary
 void drawShape()
          Draws the shape using Graphics package
 void setCommandObject(Command command)
          Sets the Command object
 void setGraphicsObject(java.awt.Graphics g)
          Sets the Graphics object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeGraphicsDrawer

public ShapeGraphicsDrawer()
Method Detail

setGraphicsObject

public void setGraphicsObject(java.awt.Graphics g)
Sets the Graphics object

Specified by:
setGraphicsObject in interface IShapeDrawer
Parameters:
g - Grahpics object to be used to draw shapes

setCommandObject

public void setCommandObject(Command command)
Sets the Command object

Specified by:
setCommandObject in interface IShapeDrawer
Parameters:
command - Command object to be set

drawShape

public void drawShape()
Draws the shape using Graphics package

Specified by:
drawShape in interface IShapeDrawer
See Also:
IShapeDrawer.drawShape()