| java.lang.Object example.audiodemo.SmallBall
SmallBall | class SmallBall implements Runnable(Code) | | A SmallBall is a lightweight animated ball that runs in its own thread.
It moves within a rectangular region, bouncing off the walls.
|
Constructor Summary | |
| SmallBall(Canvas c, int left, int top, int width, int height) Constructor defines the region in which the ball moves as well
as its starting position. |
deltaXdeltaY | int deltaXdeltaY(Code) | | |
doRepaint | public boolean doRepaint(Code) | | |
matrix | static int[][] matrix(Code) | | |
paused | public static boolean paused(Code) | | |
topleftwidthheight | int topleftwidthheight(Code) | | |
SmallBall | SmallBall(Canvas c, int left, int top, int width, int height)(Code) | | Constructor defines the region in which the ball moves as well
as its starting position.
|
faster | static void faster()(Code) | | |
getSpeedPercent | static int getSpeedPercent()(Code) | | Returns the speed in percent of
the DEFAULT_DELAY
|
paint | void paint(Graphics g)(Code) | | Paint the ball.
|
run | public void run()(Code) | | Starts the ball running.
|
setColor | public void setColor(int clr)(Code) | | |
setNote | public void setNote(int note)(Code) | | |
slower | static void slower()(Code) | | |
|
|