maslab.vis
Class VisCaption

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

public class VisCaption
extends VisObject

Displays information overlaid on the plot. For example, the time.


Field Summary
static int BOTTOMLEFT
           
static int BOTTOMRIGHT
           
 java.awt.Color color
           
 java.lang.String label
           
 int location
           
 double size
           
static int TOPLEFT
           
static int TOPRIGHT
           
 
Fields inherited from class maslab.vis.VisObject
coordinateSpace, SCREENSPACE, WORLDSPACE
 
Constructor Summary
VisCaption(java.awt.Color color, int location, java.lang.String label)
           
 
Method Summary
 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.
 void set(java.lang.String label)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOPLEFT

public static final int TOPLEFT
See Also:
Constant Field Values

TOPRIGHT

public static final int TOPRIGHT
See Also:
Constant Field Values

BOTTOMLEFT

public static final int BOTTOMLEFT
See Also:
Constant Field Values

BOTTOMRIGHT

public static final int BOTTOMRIGHT
See Also:
Constant Field Values

location

public int location

size

public double size

label

public java.lang.String label

color

public java.awt.Color color
Constructor Detail

VisCaption

public VisCaption(java.awt.Color color,
                  int location,
                  java.lang.String label)
Method Detail

set

public void set(java.lang.String label)

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