| |
|
| example.manyballs.ManyCanvas
ManyCanvas | public class ManyCanvas extends Canvas (Code) | | |
Constructor Summary | |
public | ManyCanvas(Display d, int maxBalls) |
NUM_HISTORY | static int NUM_HISTORY(Code) | | |
menuShowing | boolean menuShowing(Code) | | |
msg | String msg(Code) | | Draws the drawing frame (which also contains the ball) and the
controls.
|
ManyCanvas | public ManyCanvas(Display d, int maxBalls)(Code) | | |
hideNotify | protected void hideNotify()(Code) | | |
isPaused | boolean isPaused()(Code) | | |
keyPressed | public void keyPressed(int keyCode)(Code) | | Handle a pen down event.
|
notifyBallThreadStarted | public void notifyBallThreadStarted()(Code) | | |
notifyBallThreadStopped | public void notifyBallThreadStopped()(Code) | | |
paint | protected void paint(Graphics g)(Code) | | |
pause | void pause()(Code) | | Pause the balls by signaling each of them to stop.
The ball object still exists and holds the current position
of the ball. It may be restarted later.
The thread will terminate.
TBD: is a join needed?
|
showNotify | protected void showNotify()(Code) | | |
waitForSpecifiedNumberOfThreads | public void waitForSpecifiedNumberOfThreads(int threadNumber)(Code) | | |
|
|
|