public class PaintedList extends java.lang.Object implements PaintedObject
| Modifier and Type | Field and Description |
|---|---|
java.util.ArrayList |
paintedObjects
The list of PaintedObjects
|
| Constructor and Description |
|---|
PaintedList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(PaintedObject po)
Add a new element to the list.
|
java.awt.geom.Rectangle2D |
getBounds()
Get the bounding box of the list of painted objects.
|
void |
paint(java.awt.Graphics2D g)
Paint the list of objects.
|
public void add(PaintedObject po)
public java.awt.geom.Rectangle2D getBounds()
getBounds in interface PaintedObjectpublic void paint(java.awt.Graphics2D g)
paint in interface PaintedObject