| java.lang.Object com.sun.midp.demos.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(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. |
matrix | static int[][] matrix(Code) | | |
radiusballSize | int radiusballSize(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) | | |
inside | boolean inside(int x1, int y1, int x2, int y2)(Code) | | |
run | public void run()(Code) | | Starts the ball running.
|
slower | static void slower()(Code) | | |
|
|