TStrategyDropListItem - The type of the items put on the update strategy drop listsTPaintDropListItem - The type of the items put on the paint strategy drop lists.public interface IModelControlAdapter<TStrategyDropListItem,TPaintDropListItem>
| Modifier and Type | Method and Description |
|---|---|
TPaintDropListItem |
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
|
TStrategyDropListItem |
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
|
TStrategyDropListItem |
combineStrategies(TStrategyDropListItem selectedItem1,
TStrategyDropListItem selectedItem2)
Return a new object to put on both lists, given two items from the lists.
|
void |
makeBall(TStrategyDropListItem selectedItem1,
TPaintDropListItem selectedObject2)
Make a ball with the selected short update and paint strategy names.
|
void |
makeSwitcherBall(TPaintDropListItem selectedItem)
Make a switcher ball
|
void |
switchStrategy(TStrategyDropListItem selectedItem)
Switch the switcher strategy's decoree to the strategy denoted by the given item
|
TStrategyDropListItem addStrategy(java.lang.String classname)
classname - The shortened class name of the desired strategyvoid makeBall(TStrategyDropListItem selectedItem1, TPaintDropListItem selectedObject2)
selectedItem1 - A shorten class name for the desired update strategyselectedObject2 - A shorten class name for the desired paint strategyTStrategyDropListItem combineStrategies(TStrategyDropListItem selectedItem1, TStrategyDropListItem selectedItem2)
selectedItem1 - An object from one drop listselectedItem2 - An object from the other drop listvoid switchStrategy(TStrategyDropListItem selectedItem)
selectedItem - An object from the top drop list to use as the new switcher decoree.void makeSwitcherBall(TPaintDropListItem selectedItem)
selectedItem - the selected paint strategyvoid clearBalls()
TPaintDropListItem addPaintStrategy(java.lang.String text)
text - The text from the user's input (text field)