All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class crw.data2.YAmplitude

java.lang.Object
   |
   +----crw.data2.YAmplitude

public class YAmplitude
extends Object
Class to represent the aplitudes in a waveform object. The amplitude data is represented as an int[] object. Its time base data is also a reference to a int[] object which is the time data in the XTimeBase object.

Version:
1.0
Author:
C.Wie

Constructor Index

 o YAmplitude(XTimeBase)
Constructor needs reference to the timeBase object which supplies the time data as int[].

Method Index

 o draw(Graphics)
Draws the waveform curve.
 o getData()
Returns the amplitude data.
 o put(int)
Puts data into the amplitude data int[] at the same index position as the time data's current index.
 o reset()
Sets the reference to the amp data int[] to a brand new one.
 o reset(int)
Sets the ref to amp data int[] to a new one, may be of different length.

Constructors

 o YAmplitude
 public YAmplitude(XTimeBase time)
Constructor needs reference to the timeBase object which supplies the time data as int[].

Methods

 o put
 public void put(int ydata)
Puts data into the amplitude data int[] at the same index position as the time data's current index.

 o reset
 public void reset()
Sets the reference to the amp data int[] to a brand new one.

 o reset
 public void reset(int arrayLength)
Sets the ref to amp data int[] to a new one, may be of different length.

Parameters:
arrayLength - a new array length.
 o draw
 public void draw(Graphics g)
Draws the waveform curve.

 o getData
 public int[] getData()
Returns the amplitude data.


All Packages  Class Hierarchy  This Package  Previous  Next  Index