CSE115.ShapeWorld
Class MutableShape

java.lang.Object
  extended by 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:

Constructor Summary
MutableShape(Graphic graphic)
           
 
Method Summary
 Behavior getBehavior()
           
 Point getCenterLocation()
           
 Color getColor()
           
 Dimension getDimension()
           
 DrawingPanel getDrawingPanel()
           
 Graphic getGraphic()
           
 Point getLocation()
           
 DrawingPanel getMutableShapeDrawingPanel()
           
 int getRotation()
           
 void hide()
           
 void setBehavior(Behavior behavior)
           
 void setCenterLocation(Point p)
           
 void setColor(Color color)
           
 void setDimension(Dimension d)
           
 void setDrawingPanel(DrawingPanel dp)
           
 void setGraphic(Graphic graphic)
           
 void setLocation(Point p)
           
 void setMutableShapeDrawingPanel(DrawingPanel dp)
           
 void setRotation(int r)
           
 void update()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutableShape

public MutableShape(Graphic graphic)
Method Detail

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