classes.container
Class ShapeContainerCreator

java.lang.Object
  extended by classes.container.ShapeContainerCreator

public class ShapeContainerCreator
extends java.lang.Object

Singleton class to create the shape container

Version:
1.0, 21-Mar-07
Author:
Prathab, Mukesh
See Also:
ShapeContainer

Method Summary
static ShapeContainer createContainer(ShapeCoordinates shapeCoordinates, ICommandMediator commandMediator)
          Creates the ShapeContainer object and returns same object if it is already created (singleton).
static ShapeContainer getContainer()
          Returns the already created shape container instance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createContainer

public static ShapeContainer createContainer(ShapeCoordinates shapeCoordinates,
                                             ICommandMediator commandMediator)
Creates the ShapeContainer object and returns same object if it is already created (singleton).

Parameters:
shapeCoordinates - coordinates for the Shape Contianer
Returns:
ShapeContainer instance

getContainer

public static ShapeContainer getContainer()
Returns the already created shape container instance

Returns:
ShapeContainer instance