CSE115.ShapeWorld
Interface Graphic

All Known Subinterfaces:
Shape
All Known Implementing Classes:
CircleGraphic, MutableShape, MutableShape, SquareGraphic

public interface Graphic

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

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