Constructor and Description |
---|
ShapeProp(Shape shape)
Create a new ShapeProp, given a standard shape from the UWCSE
graphics library (e.g., a Rectangle, Oval, Triangle, Line, or
Polygon)
|
Modifier and Type | Method and Description |
---|---|
void |
addTo(GWindow w)
Add the shape to the window
|
void |
removeFromWindow()
Remove the shape from its window
|
public ShapeProp(Shape shape)
public void addTo(GWindow w)
public void removeFromWindow()
removeFromWindow
in interface Prop