maslab.vis
Class VisSet

java.lang.Object
  extended by maslab.vis.VisObject
      extended by maslab.vis.VisSet

public class VisSet
extends VisObject

A container for other VisObjects that can be easily cleared. This is useful for drawing something fairly complicated but that should only be around temporarily.


Field Summary
 
Fields inherited from class maslab.vis.VisObject
coordinateSpace, SCREENSPACE, WORLDSPACE
 
Constructor Summary
VisSet()
           
 
Method Summary
 void add(VisObject vo)
           
 void clear()
           
 void paint(VisCanvas vc, java.awt.Graphics2D g, java.awt.image.BufferedImage bi)
          Overriden by each subclass to draw itself onto the provided graphics context.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisSet

public VisSet()
Method Detail

paint

public void paint(VisCanvas vc,
                  java.awt.Graphics2D g,
                  java.awt.image.BufferedImage bi)
Description copied from class: VisObject
Overriden by each subclass to draw itself onto the provided graphics context. Applications can choose to use either the Graphics2D (which has the correct transform already set up) or to draw to the buffered image directly.

Specified by:
paint in class VisObject

add

public void add(VisObject vo)

clear

public void clear()