interfaces
Interface IShapeContainerState

All Known Implementing Classes:
ShapeContainerEmptyState, ShapeContainerFullState, ShapeContainerPartialState

public interface IShapeContainerState

Interface for encapsulating the state of the shape container

Version:
1.0, 22-Mar-07
Author:
Prathab
See Also:
IShape, ShapeContainerContext

Method Summary
 boolean addShape(ShapeContainerContext shapeContainerContext, IShape shape)
          Adds the given shape to container based on its context
 boolean removeShape(ShapeContainerContext shapeContainerContext, IShape shape)
          Removes the given shape from container based on its context
 

Method Detail

addShape

boolean addShape(ShapeContainerContext shapeContainerContext,
                 IShape shape)
Adds the given shape to container based on its context

Parameters:
shapeContainerContext - ShapeContainerContext object that to be referred to perform the operation
shape - IShape object to be added
Returns:
true if shape is added to container

removeShape

boolean removeShape(ShapeContainerContext shapeContainerContext,
                    IShape shape)
Removes the given shape from container based on its context

Parameters:
shapeContainerContext - ShapeContainerContext object that to be referred to perform the operation
shape - IShape object to be removed
Returns:
true if shape is removed to container