|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object graphics.AbstractGraphic graphics.AbstractColorableGraphic graphics.Polygon lab2lib.BouncingTriangle
public class BouncingTriangle
Constructor Summary | |
---|---|
BouncingTriangle()
Creates a new instance of BouncingSquare |
Method Summary | |
---|---|
void |
setColor(Color newColor)
Set the color of a bouncing thing. |
void |
setDimension(java.awt.Dimension newDimension)
Resizes the Polygon to a specified dimension. |
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.Polygon |
---|
actualPaint, addPoint, getShape, removePoint, setLocation |
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, 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 |
Methods inherited from interface graphics.IRotatable |
---|
getRotation, rotate, setRotation |
Constructor Detail |
---|
public BouncingTriangle()
Method Detail |
---|
public void stopBouncing()
IBounceChanger
stopBouncing
in interface IBounceChanger
IBounceChanger.stopBouncing()
public void startBouncing()
IBounceChanger
startBouncing
in interface IBounceChanger
IBounceChanger.startBouncing()
public void setMovement(Vector movementVector)
IBounceChanger
setMovement
in interface IBounceChanger
movementVector
- IBounceChanger.setMovement(utilities.Vector)
public void setDimension(java.awt.Dimension newDimension)
Polygon
setDimension
in interface ISizeable
setDimension
in interface IBounceChanger
setDimension
in class Polygon
newDimension
- AbstractGraphic.setDimension(java.awt.Dimension)
public void setColor(Color newColor)
IBounceChanger
setColor
in interface IBounceChanger
newColor
- AbstractColorableGraphic.setColor(java.awt.Color)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |