|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinterfaces.CommandColleague
classes.container.state.ShapeContainerEmptyState
public class ShapeContainerEmptyState
Performs the operations based on the empty state of the container
ShapeContainer,
IShapeContainerState| Field Summary |
|---|
| Fields inherited from class interfaces.CommandColleague |
|---|
commandMediator |
| Method Summary | |
|---|---|
boolean |
addShape(ShapeContainerContext shapeContainerContext,
IShape shape)
Adds the given shape to container based on the partial filled state |
static ShapeContainerEmptyState |
getInstance(ICommandMediator commandMediator)
Creates the ShapeContainerFullState object and returns same object if it is already created (singleton). |
boolean |
removeShape(ShapeContainerContext shapeContainerContext,
IShape shape)
Removes the given shape from the container based on the partial filled state |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ShapeContainerEmptyState getInstance(ICommandMediator commandMediator)
commandMediator - mediator object to communicate with other objects
ShapeContainerFullState object
public boolean addShape(ShapeContainerContext shapeContainerContext,
IShape shape)
addShape in interface IShapeContainerStateshapeContainerContext - shape container context which holds the details of the shape containershape - shape to be added
IShapeContainerState.addShape(classes.container.ShapeContainerContext, interfaces.IShape)
public boolean removeShape(ShapeContainerContext shapeContainerContext,
IShape shape)
removeShape in interface IShapeContainerStateshapeContainerContext - shape container context which holds the details of the shape containershape - shape to be removed
IShapeContainerState.removeShape(classes.container.ShapeContainerContext, interfaces.IShape)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||