diva.util.java2d
Class PaintedList

java.lang.Object
  extended by diva.util.java2d.PaintedList
All Implemented Interfaces:
PaintedObject

Deprecated. Will be removed in Diva 0.4. Use diva.compat.canvas if needed.

public class PaintedList
extends Object
implements PaintedObject

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.

Version:
$Revision: 1.6 $
Author:
John Reekie

Field Summary
 ArrayList paintedObjects
          Deprecated. The list of PaintedObjects
 
Constructor Summary
PaintedList()
          Deprecated.  
 
Method Summary
 void add(PaintedObject po)
          Deprecated. Add a new element to the list.
 Rectangle2D getBounds()
          Deprecated. Get the bounding box of the list of painted objects.
 void paint(Graphics2D g)
          Deprecated. 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

paintedObjects

public ArrayList paintedObjects
Deprecated. 
The list of PaintedObjects

Constructor Detail

PaintedList

public PaintedList()
Deprecated. 
Method Detail

add

public void add(PaintedObject po)
Deprecated. 
Add a new element to the list. The element is added to the back of the list, and so will be painted over the top of the elements already in the list.


getBounds

public Rectangle2D getBounds()
Deprecated. 
Get the bounding box of the list of painted objects. Clients should cache the bounding box if performance is important.

Specified by:
getBounds in interface PaintedObject

paint

public void paint(Graphics2D g)
Deprecated. 
Paint the list of objects. Objects are painted from the front of the list backwards.

Specified by:
paint in interface PaintedObject


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.