CSE115.ShapeWorld
Interface Graphic

All Known Subinterfaces:
Shape
All Known Implementing Classes:
Box, ChangeableShape, MutableShape, ThingOne, ThingTwo

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

void setColor(Color c)

getColor

Color getColor()

setLocation

void setLocation(Point p)

getLocation

Point getLocation()

setCenterLocation

void setCenterLocation(Point p)

getCenterLocation

Point getCenterLocation()

setDimension

void setDimension(Dimension d)

getDimension

Dimension getDimension()

setRotation

void setRotation(int r)

getRotation

int getRotation()

setDrawingPanel

void setDrawingPanel(DrawingPanel dp)

getDrawingPanel

DrawingPanel getDrawingPanel()