Class Bounceable
java.lang.Object
Bounceable
public abstract class Bounceable
- extends Object
Constructor Summary |
Bounceable(double newX,
double newY,
double newDirection,
double newSpeed)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Bounceable
public Bounceable(double newX,
double newY,
double newDirection,
double newSpeed)
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)