|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinterfaces.CommandColleague
classes.container.state.ShapeContainerFullState
public class ShapeContainerFullState
Performs the operations based on the full 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 ShapeContainerFullState |
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 ShapeContainerFullState getInstance(ICommandMediator commandMediator)
commandMediator
- mediator object to communicate with other objects
public boolean addShape(ShapeContainerContext shapeContainerContext, IShape shape)
addShape
in interface IShapeContainerState
shapeContainerContext
- 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 IShapeContainerState
shapeContainerContext
- 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 |