CSE115.BehaviorShapeWorld
Class SquareGraphic
java.lang.Object
NGP.Graphics.Shape
NGP.Graphics.RectangularShape
NGP.Graphics.FilledRectangularShape
NGP.Graphics.FilledRectangle
CSE115.BehaviorShapeWorld.SquareGraphic
- All Implemented Interfaces:
- Colorable, EventListener, Graphic, Graphic, Locatable, MouseListener, MouseMotionListener, Reactor, Rotatable, Sizeable
- public class SquareGraphic
- extends FilledRectangle
- implements Graphic
A square that moves when told to.
Created: Wed Sep 15, 2004
- Author:
- Carl Alphonce
| Methods inherited from class NGP.Graphics.Shape |
contains, drag, getBounds, getCenterLocation, getColor, getDrawingPanel, getRotation, hide, intersects, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paint, setColor, setDrawingPanel, setRotation, show |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface CSE115.BehaviorShapeWorld.Graphic |
contains, getCenterLocation, getColor, getDimension, getDrawingPanel, getLocation, getRotation, setCenterLocation, setColor, setDimension, setDrawingPanel, setLocation, setRotation |
SquareGraphic
public SquareGraphic(DrawingPanel dp)
- Creates a new
SquareGraphic instance.
setBox
public void setBox(Box b)
react
public void react()
- Specified by:
react in interface Reactor