Class WaveViewer

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

public class WaveViewer
extends Canvas
implements ComponentListener
This class is used to show waveforms in waveforms' window


Method Index

 o componentHidden(ComponentEvent)
Handles the componentHidden event.
 o componentMoved(ComponentEvent)
Handles the componentMoved event.
 o componentResized(ComponentEvent)
Handles the componentResized event.
 o componentShown(ComponentEvent)
Handles the componentShown event.
 o getMeter()
Returns meter height in viewer
 o getProbeHeight()
Returns one wave height in viewer
 o getProbes()
Returns probes
 o nextStep(double)
 o paint(Graphics)
This method is called to draw this component - dump offscreen image to the screen.
 o reSize(double)
Resize the viewer
 o setProbes(Vector)
Sets new probes
 o update(Graphics)
Updates this component.

Methods

 o setProbes
 public void setProbes(Vector probes)
Sets new probes

Parameters:
probes - vector of probes
 o getProbes
 public Vector getProbes()
Returns probes

Returns:
vector of probes
 o getMeter
 public int getMeter()
Returns meter height in viewer

Returns:
meter height in pixels
 o getProbeHeight
 public int getProbeHeight()
Returns one wave height in viewer

Returns:
wave height in pixels
 o paint
 public void paint(Graphics g)
This method is called to draw this component - dump offscreen image to the screen.

Parameters:
g - the graphics context.
Overrides:
paint in class Canvas
See Also:
Graphics
 o nextStep
 public void nextStep(double pixelsPerSecond)
 o update
 public void update(Graphics g)
Updates this component.

Parameters:
g - the specified context to use for updating.
Overrides:
update in class Component
 o reSize
 public void reSize(double scalingFactor)
Resize the viewer

Parameters:
scalingFactor - scaling factor
 o componentResized
 public void componentResized(ComponentEvent e)
Handles the componentResized event. Resizes scroll pane according to the event.

Parameters:
e - the component event
 o componentMoved
 public void componentMoved(ComponentEvent e)
Handles the componentMoved event.

Parameters:
e - the component event
 o componentShown
 public void componentShown(ComponentEvent e)
Handles the componentShown event.

Parameters:
e - the component event
 o componentHidden
 public void componentHidden(ComponentEvent e)
Handles the componentHidden event.

Parameters:
e - the component event