| java.lang.Object example.manyballs.SmallBall
SmallBall | class SmallBall implements Runnable(Code) | | A SmallBall is a lightweight animated ball that runs in it's own thread.
It moves within a rectangular region, bouncing off the walls.
|
Constructor Summary | |
| SmallBall(ManyCanvas c, int left, int top, int width, int height) Constructor defines the region in which the ball moves as well
as its starting position. |
matrix | static int[][] matrix(Code) | | |
SmallBall | SmallBall(ManyCanvas 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) | | |
inside | boolean inside(int x1, int y1, int x2, int y2)(Code) | | |
paint | void paint(Graphics g)(Code) | | Paint the ball.
|
slower | static void slower()(Code) | | |
|
|