interfaces
Interface IShapeContainer

All Known Implementing Classes:
ShapeContainer

public interface IShapeContainer

Interface for the ShapeContainer component

Version:
1.0, 11-Apr-07
Author:
Prathab

Method Summary
 boolean addShape(IShape shape)
          Adds the given shape object to container
 void drawShape()
          Draws the container
 IShape getShape(int index)
          Returns the shape object for the given index
 boolean removeShape(IShape shape)
          Removes the given shape from the container
 

Method Detail

drawShape

void drawShape()
Draws the container


addShape

boolean addShape(IShape shape)
Adds the given shape object to container

Parameters:
shape - shape to be added
Returns:
true if the shape object is added

removeShape

boolean removeShape(IShape shape)
Removes the given shape from the container

Parameters:
shape - shape to be removed
Returns:
true if the shape object is removed

getShape

IShape getShape(int index)
Returns the shape object for the given index

Parameters:
index - index to be retrieved in the ShapeList
Returns:
IShape object type of the given index