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
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)