|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IModelControlAdapter
Adapter that the view uses to communicate to the model for non-repetitive control tasks such as manipulating strategies.
Method Summary | |
---|---|
java.lang.Object |
addPaintStrategy(java.lang.String text)
Converts a paint strategy's class name in the form of a string, into an object that can be placed onto the paint strategy drop list |
java.lang.Object |
addStrategy(java.lang.String classname)
Take the given short strategy name and return a corresponding something to put onto both drop lists. |
void |
clearBalls()
Clear all the balls from the system |
java.lang.Object |
combineStrategies(java.lang.Object selectedItem1,
java.lang.Object selectedItem2)
Return a new object to put on both lists, given two items from the lists. |
void |
makeBall(java.lang.Object selectedItem1,
java.lang.Object selectedObject2)
Make a ball with the selected short update and paint strategy names. |
void |
makeSwitcherBall()
Make a switcher ball |
void |
switchStrategy(java.lang.Object selectedItem)
Switch the switcher strategy's decoree to the strategy denoted by the given item |
Method Detail |
---|
java.lang.Object addStrategy(java.lang.String classname)
classname
- The shortened class name of the desired strategy
void makeBall(java.lang.Object selectedItem1, java.lang.Object selectedObject2)
selectedItem1
- A shorten class name for the desired update strategyselectedObject2
- A shorten class name for the desired paint strategyjava.lang.Object combineStrategies(java.lang.Object selectedItem1, java.lang.Object selectedItem2)
selectedItem1
- An object from one drop listselectedItem2
- An object from the other drop list
void switchStrategy(java.lang.Object selectedItem)
selectedItem
- An object from the top drop list to use as the new switcher decoree.void makeSwitcherBall()
void clearBalls()
java.lang.Object addPaintStrategy(java.lang.String text)
text
- The text from the user's input (text field)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |