|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgraphics.AbstractGraphic
graphics.AbstractColorableGraphic
graphics.Ellipse
lab3lib.BouncingBall
public class BouncingBall
TODO: A ball that bounces around the screen.
| Constructor Summary | |
|---|---|
BouncingBall()
Creates a new instance of BouncingBall |
|
| Method Summary | |
|---|---|
void |
setColor(Color newColor)
Set the color of a bouncing thing. |
void |
setDimension(java.awt.Dimension newDimension)
Changes the Dimension of this Graphic |
void |
setMovement(Vector movementVector)
Set the movement vector of a bouncing thing. |
void |
startBouncing()
Start the bouncing thing bouncing. |
void |
stopBouncing()
Stop the bouncing thing from bouncing. |
| Methods inherited from class graphics.Ellipse |
|---|
actualPaint, getShape |
| Methods inherited from class graphics.AbstractColorableGraphic |
|---|
getColor, paint, setColor |
| Methods inherited from class graphics.AbstractGraphic |
|---|
addMouseListener, addMouseMotionListener, contains, getBounds, getCenterLocation, getContainer, getDimension, getLocation, getMouseListeners, getMouseMotionListeners, getMovement, getRotation, intersects, move, rotate, setCenterLocation, setContainer, setLocation, setMovement, setRotation |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface graphics.IGraphic |
|---|
addMouseListener, addMouseMotionListener, contains, getBounds, getContainer, getMouseListeners, getMouseMotionListeners, getMovement, intersects, setContainer, setMovement |
| Methods inherited from interface graphics.ISizeable |
|---|
getDimension |
| Methods inherited from interface graphics.CenterLocatable |
|---|
getCenterLocation, setCenterLocation |
| Methods inherited from interface graphics.ILocatable |
|---|
getLocation, move, setLocation |
| Methods inherited from interface graphics.IRotatable |
|---|
getRotation, rotate, setRotation |
| Constructor Detail |
|---|
public BouncingBall()
| Method Detail |
|---|
public void stopBouncing()
IBounceChanger
stopBouncing in interface IBounceChangerIBounceChanger.stopBouncing()public void startBouncing()
IBounceChanger
startBouncing in interface IBounceChangerIBounceChanger.startBouncing()public void setMovement(Vector movementVector)
IBounceChanger
setMovement in interface IBounceChangermovementVector - IBounceChanger.setMovement(utilities.Vector)public void setDimension(java.awt.Dimension newDimension)
AbstractGraphic
setDimension in interface ISizeablesetDimension in interface IBounceChangersetDimension in class AbstractGraphicnewDimension - AbstractGraphic.setDimension(java.awt.Dimension)public void setColor(Color newColor)
IBounceChanger
setColor in interface IBounceChangernewColor - AbstractColorableGraphic.setColor(java.awt.Color)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||