public class PaintedList extends Object implements PaintedObject
Modifier and Type | Field and Description |
---|---|
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.
|
Rectangle2D |
getBounds()
Get the bounding box of the list of painted objects.
|
void |
paint(Graphics2D g)
Paint the list of objects.
|
public ArrayList paintedObjects
public void add(PaintedObject po)
public Rectangle2D getBounds()
getBounds
in interface PaintedObject
public void paint(Graphics2D g)
paint
in interface PaintedObject
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.