maslab.vis
Class VisCaption
java.lang.Object
maslab.vis.VisObject
maslab.vis.VisCaption
public class VisCaption
- extends VisObject
Displays information overlaid on the plot. For example, the time.
|
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 |
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
VisCaption
public VisCaption(java.awt.Color color,
int location,
java.lang.String label)
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