demos.bounce
Class BouncingTriangle

java.lang.Object
  extended by cse115.graphics.AbstractGraphic
      extended by cse115.graphics.AbstractColorableGraphic
          extended by cse115.graphics.Polygon
              extended by demos.bounce.BouncingTriangle
All Implemented Interfaces:
CenterLocatable, Colorable, ColorableGraphic, Graphic, Locatable, Rotatable, Sizeable

public class BouncingTriangle
extends Polygon


Constructor Summary
BouncingTriangle()
          Creates a new instance of BouncingSquare
 
Method Summary
 void move(Vector v)
          Moves the Polygon by some amount, specified by a vector
 
Methods inherited from class cse115.graphics.Polygon
actualPaint, addPoint, getLocation, getShape, removePoint, setDimension, setLocation
 
Methods inherited from class cse115.graphics.AbstractColorableGraphic
getColor, paint, setColor
 
Methods inherited from class cse115.graphics.AbstractGraphic
addMouseListener, addMouseMotionListener, contains, getBounds, getCenterLocation, getContainer, getDimension, getMouseListeners, getMouseMotionListeners, getRotation, intersects, rotate, setCenterLocation, setContainer, setRotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cse115.graphics.Graphic
addMouseListener, addMouseMotionListener, contains, getBounds, getMouseListeners, getMouseMotionListeners, intersects, setContainer
 
Methods inherited from interface cse115.graphics.Sizeable
getDimension
 
Methods inherited from interface cse115.graphics.CenterLocatable
getCenterLocation, setCenterLocation
 
Methods inherited from interface cse115.graphics.Rotatable
getRotation, rotate, setRotation
 

Constructor Detail

BouncingTriangle

public BouncingTriangle()
Creates a new instance of BouncingSquare

Method Detail

move

public void move(Vector v)
Description copied from class: Polygon
Moves the Polygon by some amount, specified by a vector

Specified by:
move in interface Locatable
Overrides:
move in class Polygon
Parameters:
v - The vector representing the amount to move the Polygon
See Also:
Locatable.move(cse115.utilities.Vector)