Modifier and Type | Class | Description |
---|---|---|
class |
CircleShape |
CircleShape draws a circle for you on your Window.
|
class |
SquareShape |
SquareShape draws a Square on your Window for you.
|
class |
TextShape |
TextShape allows the display of text inside a
Shape . |
Modifier and Type | Method | Description |
---|---|---|
java.util.Iterator<Shape> |
Window.getShapesIterator() |
Returns an iterator for all the shapes in the window.
|
Modifier and Type | Method | Description |
---|---|---|
void |
Window.addShape(Shape s) |
Adds shape s to the window.
|
void |
Window.moveToBack(Shape s) |
Changes the z-order of shapes, moving s behind all other shapes.
|
void |
Window.moveToFront(Shape s) |
Changes the z-order of shapes, moving s to the front of all other shapes.
|
void |
Window.removeShape(Shape s) |
Removes Shape s from this Window.
|