| example.audiodemo.BallCanvas
BallCanvas | public class BallCanvas extends Canvas implements CommandListener(Code) | | |
Method Summary | |
public void | commandAction(Command c, Displayable s) | synchronized void | destroy() | public synchronized void | init(int maxBalls, int bg) | boolean | isPaused() | public void | keyPressed(int keyCode) Handle a pen down event. | boolean | needAlert() | protected void | paint(Graphics g) Draws the drawing frame (which also contains the ball) and the
controls. | void | pause() Pause the balls by signaling each of them to stop.
The ball object still exists and holds the current position
of the ball. | void | start() |
commandAction | public void commandAction(Command c, Displayable s)(Code) | | |
destroy | synchronized void destroy()(Code) | | Destroy
|
init | public synchronized void init(int maxBalls, int bg)(Code) | | |
isPaused | boolean isPaused()(Code) | | |
keyPressed | public void keyPressed(int keyCode)(Code) | | Handle a pen down event.
|
needAlert | boolean needAlert()(Code) | | |
paint | protected void paint(Graphics g)(Code) | | Draws the drawing frame (which also contains the ball) and the
controls.
|
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 current thread will be terminated.
|
|
|