classes.shapes
Class ShapeFactory

java.lang.Object
  extended by classes.shapes.ShapeFactory
All Implemented Interfaces:
IShapeFactory

public class ShapeFactory
extends java.lang.Object
implements IShapeFactory

Factory class for the shape objects

Version:
1.0, 06-Apr-07
Author:
Prathab, Mukesh

Constructor Summary
ShapeFactory()
           
 
Method Summary
 IShape getShape(java.lang.String shapeName, ShapeCoordinates shapeCoordinates, ICommandMediator commandMediator)
          Creates the Shape object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeFactory

public ShapeFactory()
Method Detail

getShape

public IShape getShape(java.lang.String shapeName,
                       ShapeCoordinates shapeCoordinates,
                       ICommandMediator commandMediator)
Creates the Shape object

Specified by:
getShape in interface IShapeFactory
Parameters:
shapeName - name of the shape
shapeCoordinates - default coordinates of the shape
commandMediator - command meditor to interact with other classes
Returns:
returns the IShape object
See Also:
ShapeCoordinates, ICommandMediator