|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBallCtrlAdapter
Interface to the model from the view that is used to control the balls once they are already created.
Method Summary | |
---|---|
void |
clearBalls()
Asks the model to clear (delete) all the balls. |
String |
getDisplayStr(String origStr)
Asks that the models augment or replace the current given display string. |
void |
paint(Graphics g)
Requests that the model have all the balls paint themselves onto the given Graphics context and to update ther states. |
void |
switchStrategy(Object fac)
Tells the model to switch the decoree strategy in the currently defined SwitcherStrategy to a new strategy, as specified by the given factory. |
Method Detail |
---|
void paint(Graphics g)
g
- The Graphics context onto which the balls should paint themeselves.void clearBalls()
void switchStrategy(Object fac)
fac
- The factory for the model to use to create the new decoree strategy for SwitcherStrategy..String getDisplayStr(String origStr)
origStr
- The original display string.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |