uwcse.animation
Class ShapeProp

java.lang.Object
  |
  +--uwcse.animation.ShapeProp
All Implemented Interfaces:
Prop

public class ShapeProp
extends java.lang.Object
implements Prop


Constructor Summary
ShapeProp(uwcse.graphics.Shape shape)
          Create a new ShapeProp, given a standard shape from the UWCSE graphics library (e.g., a Rectangle, Oval, Triangle, Line, or Polygon)
 
Method Summary
 void addTo(uwcse.graphics.GWindow w)
          Add the shape to the window
 void removeFromWindow()
          Remove the shape from its window
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeProp

public ShapeProp(uwcse.graphics.Shape shape)
Create a new ShapeProp, given a standard shape from the UWCSE graphics library (e.g., a Rectangle, Oval, Triangle, Line, or Polygon)
Method Detail

addTo

public void addTo(uwcse.graphics.GWindow w)
Add the shape to the window
Specified by:
addTo in interface Prop

removeFromWindow

public void removeFromWindow()
Remove the shape from its window
Specified by:
removeFromWindow in interface Prop