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