CSE115.BehaviorShapeWorld
Interface Graphic

All Superinterfaces:
EventListener, MouseListener, MouseMotionListener, Reactor
All Known Subinterfaces:
Shape
All Known Implementing Classes:
MutableShape, SquareGraphic

public interface Graphic
extends Reactor

An interface for the graphic that is controlled by the Strategy Shape. Specifies methods (accessors and mutators) required to change properties of the graphic. Created: Wed Sep 15, 2004

Author:
Carl Alphonce

Method Summary
 boolean contains(Point p)
           
 Point getCenterLocation()
           
 Color getColor()
           
 Dimension getDimension()
           
 DrawingPanel getDrawingPanel()
           
 Point getLocation()
           
 int getRotation()
           
 void setCenterLocation(Point p)
           
 void setColor(Color c)
           
 void setDimension(Dimension d)
           
 void setDrawingPanel(DrawingPanel dp)
           
 void setLocation(Point p)
           
 void setRotation(int r)
           
 
Methods inherited from interface NGP.Reactor
react
 
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
 

Method Detail

setColor

public void setColor(Color c)

getColor

public Color getColor()

setLocation

public void setLocation(Point p)

getLocation

public Point getLocation()

setCenterLocation

public void setCenterLocation(Point p)

getCenterLocation

public Point getCenterLocation()

setDimension

public void setDimension(Dimension d)

getDimension

public Dimension getDimension()

setRotation

public void setRotation(int r)

getRotation

public int getRotation()

setDrawingPanel

public void setDrawingPanel(DrawingPanel dp)

getDrawingPanel

public DrawingPanel getDrawingPanel()

contains

public boolean contains(Point p)