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.
-
SelGraphics()
- The constructor.
-
add(double)
- Add the data to the graph.
-
clear()
-
-
paint(Graphics)
- Draws the chart on the screen.
-
paintComponents(Graphics)
-
-
startNewTrace()
- Initialize the graph.
-
update(Graphics)
-
SelGraphics
public SelGraphics()
- The constructor.
update
public void update(Graphics g)
- Overrides:
- update in class Component
paintComponents
public void paintComponents(Graphics g)
paint
public void paint(Graphics g)
- Draws the chart on the screen.
- Parameters:
- g - The drawing area
- Overrides:
- paint in class Canvas
add
public void add(double value)
- Add the data to the graph.
- Parameters:
- value - The new value for the graph
startNewTrace
public void startNewTrace()
- Initialize the graph.
clear
public void clear()