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
-
YAmplitude(XTimeBase)
- Constructor needs reference to the timeBase object which supplies the
time data as int[].
-
draw(Graphics)
- Draws the waveform curve.
-
getData()
- Returns the amplitude data.
-
put(int)
- Puts data into the amplitude data int[] at the same
index position as the time data's current index.
-
reset()
- Sets the reference to the amp data int[] to a brand new one.
-
reset(int)
- Sets the ref to amp data int[] to a new one, may be
of different length.
YAmplitude
public YAmplitude(XTimeBase time)
- Constructor needs reference to the timeBase object which supplies the
time data as int[].
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.
reset
public void reset()
- Sets the reference to the amp data int[] to a brand new one.
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.
draw
public void draw(Graphics g)
- Draws the waveform curve.
getData
public int[] getData()
- Returns the amplitude data.
All Packages Class Hierarchy This Package Previous Next Index