|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBallCreateAdapter
Interface that represents the ball creattion capabilities of the model offered to the view.
Method Summary | |
---|---|
Object |
addPaintStrategy(String classname)
Add a paint strategy to the the model. |
Object |
addStrategy(String classname)
Add a strategy to the the model. |
Object |
combineStrategies(Object fac1,
Object fac2)
Add a combination of two strategies to the model. |
void |
makeBall(Object strategyFac,
Object paintFac)
Makes a ball in the model using the given factory, whose type and usage is unavailable to the view. |
void |
makeSwitcher(Object pfac)
Tells the model to add a ball using the currently defined SwitcherStrategy. |
Method Detail |
---|
void makeBall(Object strategyFac, Object paintFac)
strategyFac
- The UpdateStrategy factory for the model to use to make a new ball.paintFac
- The PaintStrategy factory for the model to use to make a new ball.Object addStrategy(String classname)
classname
- The classname of the strategy to add.
Object combineStrategies(Object fac1, Object fac2)
fac1
- The first factory to usefac2
- The second factory to use
Object addPaintStrategy(String classname)
classname
- The classname of the strategy to add.
void makeSwitcher(Object pfac)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |