Class SelGraphics

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----SelGraphics

public class SelGraphics
extends Canvas
Generates a graph. It scales its axis automatically, so the window is always filled at its maximum.


Constructor Index

 o SelGraphics()
The constructor.

Method Index

 o add(double)
Add the data to the graph.
 o clear()
 o paint(Graphics)
Draws the chart on the screen.
 o paintComponents(Graphics)
 o startNewTrace()
Initialize the graph.
 o update(Graphics)

Constructors

 o SelGraphics
 public SelGraphics()
The constructor.

Methods

 o update
 public void update(Graphics g)
Overrides:
update in class Component
 o paintComponents
 public void paintComponents(Graphics g)
 o paint
 public void paint(Graphics g)
Draws the chart on the screen.

Parameters:
g - The drawing area
Overrides:
paint in class Canvas
 o add
 public void add(double value)
Add the data to the graph.

Parameters:
value - The new value for the graph
 o startNewTrace
 public void startNewTrace()
Initialize the graph.

 o clear
 public void clear()