CSE115.ShapeWorld
Class SquareGraphic

java.lang.Object
  extended by NGP.Graphics.Shape
      extended by NGP.Graphics.RectangularShape
          extended by NGP.Graphics.FilledRectangularShape
              extended by NGP.Graphics.FilledRectangle
                  extended by CSE115.ShapeWorld.SquareGraphic
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener, Colorable, Graphic, Locatable, 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

Field Summary
 
Fields inherited from interface NGP.Colorable
DEFAULT_GRAY
 
Constructor Summary
SquareGraphic(DrawingPanel dp)
          Creates a new SquareGraphic instance.
 
Method Summary
 
Methods inherited from class NGP.Graphics.FilledRectangularShape
actualPaint
 
Methods inherited from class NGP.Graphics.RectangularShape
getDimension, getLocation, setCenterLocation, setDimension, setLocation, unwrap, wrap
 
Methods inherited from class NGP.Graphics.Shape
contains, drag, getBounds, getCenterLocation, getColor, getDrawingPanel, getRotation, hide, intersects, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paint, react, setColor, setDrawingPanel, setRotation, show
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface CSE115.ShapeWorld.Graphic
getCenterLocation, getColor, getDimension, getDrawingPanel, getLocation, getRotation, setCenterLocation, setColor, setDimension, setDrawingPanel, setLocation, setRotation
 

Constructor Detail

SquareGraphic

public SquareGraphic(DrawingPanel dp)
Creates a new SquareGraphic instance.