lab3lib
Interface IBounceChanger

All Known Implementing Classes:
BouncingBall, BouncingSquare, BouncingTriangle

public interface IBounceChanger

An interface that bouncing things should conform to so that some of their properties can be modified.

Author:
Adrienne M Decker Created on: Feb 17, 2008

Method Summary
 void setColor(Color newColor)
          Set the color of a bouncing thing.
 void setDimension(java.awt.Dimension newDimension)
          Set the dimension of a bouncing thing.
 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.
 

Method Detail

stopBouncing

void stopBouncing()
Stop the bouncing thing from bouncing.


startBouncing

void startBouncing()
Start the bouncing thing bouncing.


setMovement

void setMovement(Vector movementVector)
Set the movement vector of a bouncing thing.

Parameters:
movementVector - the new vector controlling the movement.

setDimension

void setDimension(java.awt.Dimension newDimension)
Set the dimension of a bouncing thing.

Parameters:
newDimension - the new dimension.

setColor

void setColor(Color newColor)
Set the color of a bouncing thing.

Parameters:
newColor - the new color.