|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.util.java2d.PaintedList
public class PaintedList
A class that collects a number of PaintedObjects. This is a low-level utility class intended for constructing graphical objects from some kind of external list.
Field Summary | |
---|---|
java.util.ArrayList |
paintedObjects
The list of PaintedObjects |
Constructor Summary | |
---|---|
PaintedList()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.ArrayList paintedObjects
Constructor Detail |
---|
public PaintedList()
Method Detail |
---|
public void add(PaintedObject po)
public java.awt.geom.Rectangle2D getBounds()
getBounds
in interface PaintedObject
public void paint(java.awt.Graphics2D g)
paint
in interface PaintedObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |