CSE115.ShapeWorld
Class MutableShape
java.lang.Object
CSE115.ShapeWorld.MutableShape
- All Implemented Interfaces:
- Graphic, Shape
- Direct Known Subclasses:
- Box, ChangeableShape, ThingOne, ThingTwo
public class MutableShape
- extends Object
- implements Shape
MutableShape.java
Created: Wed Oct 15 16:59:38 2003
- Version:
- Author:
MutableShape
public MutableShape(Graphic graphic)
hide
public void hide()
- Specified by:
hide
in interface Shape
update
public void update()
- Specified by:
update
in interface Shape
setColor
public void setColor(Color color)
- Specified by:
setColor
in interface Graphic
getColor
public Color getColor()
- Specified by:
getColor
in interface Graphic
setLocation
public void setLocation(Point p)
- Specified by:
setLocation
in interface Graphic
getLocation
public Point getLocation()
- Specified by:
getLocation
in interface Graphic
setCenterLocation
public void setCenterLocation(Point p)
- Specified by:
setCenterLocation
in interface Graphic
getCenterLocation
public Point getCenterLocation()
- Specified by:
getCenterLocation
in interface Graphic
setDimension
public void setDimension(Dimension d)
- Specified by:
setDimension
in interface Graphic
getDimension
public Dimension getDimension()
- Specified by:
getDimension
in interface Graphic
setRotation
public void setRotation(int r)
- Specified by:
setRotation
in interface Graphic
getRotation
public int getRotation()
- Specified by:
getRotation
in interface Graphic
setMutableShapeDrawingPanel
public void setMutableShapeDrawingPanel(DrawingPanel dp)
getMutableShapeDrawingPanel
public DrawingPanel getMutableShapeDrawingPanel()
setDrawingPanel
public void setDrawingPanel(DrawingPanel dp)
- Specified by:
setDrawingPanel
in interface Graphic
getDrawingPanel
public DrawingPanel getDrawingPanel()
- Specified by:
getDrawingPanel
in interface Graphic
setBehavior
public void setBehavior(Behavior behavior)
getBehavior
public Behavior getBehavior()
setGraphic
public void setGraphic(Graphic graphic)
getGraphic
public Graphic getGraphic()