Class Bounceable

java.lang.Object
  extended by Bounceable

public abstract class Bounceable
extends Object


Constructor Summary
Bounceable(double newX, double newY, double newDirection, double newSpeed)
           
 
Method Summary
abstract  double getBottom()
           
 Color getColor()
           
 double getDirection()
           
abstract  double getLeft()
           
abstract  double getRight()
           
 double getSpeed()
           
abstract  double getTop()
           
 double getX()
           
 double getY()
           
abstract  void paint(Graphics g, int xPos, int yPos)
           
 void setColor(Color newColor)
           
 void setDirection(double newDirection)
           
 void setLocation(double newX, double newY)
           
 void setSpeed(double newSpeed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bounceable

public Bounceable(double newX,
                  double newY,
                  double newDirection,
                  double newSpeed)
Method Detail

getBottom

public abstract double getBottom()

getColor

public Color getColor()

getDirection

public double getDirection()

getLeft

public abstract double getLeft()

getRight

public abstract double getRight()

getSpeed

public double getSpeed()

getTop

public abstract double getTop()

getX

public double getX()

getY

public double getY()

paint

public abstract void paint(Graphics g,
                           int xPos,
                           int yPos)

setColor

public void setColor(Color newColor)

setDirection

public void setDirection(double newDirection)

setLocation

public void setLocation(double newX,
                        double newY)

setSpeed

public void setSpeed(double newSpeed)