maslab.vis
Class VisObject

java.lang.Object
  extended by maslab.vis.VisObject
Direct Known Subclasses:
VisCaption, VisEllipse, VisFigFile, VisLabelledPoint, VisLaserScan, VisLine, VisPlot, VisPoint, VisPointList, VisRobot, VisSet

public abstract class VisObject
extends java.lang.Object

The abstract base class of all objects which can be drawn on a VisCanvas


Field Summary
 int coordinateSpace
          Used by VisCanvas to determine how the coordinate space should be transformed.
static int SCREENSPACE
          Captions, legends, etc, might want to be in screen space instead.
static int WORLDSPACE
          Objects that are being plotted should be in world space.
 
Constructor Summary
VisObject()
           
 
Method Summary
abstract  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
 

Field Detail

WORLDSPACE

public static int WORLDSPACE
Objects that are being plotted should be in world space. The paint() method deals with meters.


SCREENSPACE

public static int SCREENSPACE
Captions, legends, etc, might want to be in screen space instead. In this case, the paint() method deals with pixels.


coordinateSpace

public int coordinateSpace
Used by VisCanvas to determine how the coordinate space should be transformed.

Constructor Detail

VisObject

public VisObject()
Method Detail

paint

public abstract 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. Applications can choose to use either the Graphics2D (which has the correct transform already set up) or to draw to the buffered image directly.