All Packages Class Hierarchy This Package Previous Next Index
Class crw.data2.XTimeBase
java.lang.Object
|
+----crw.data2.XTimeBase
- public class XTimeBase
- extends Object
This class works with YWaveform class to display a moving
waveform on grided area defined by AxisX and AxisY. The
traveling waveform is displayed best by a WaveformGraphSet,
in which this class and YWaveform participate as members.
- Version:
- 1.0
- Author:
- C.Wie
-
XTimeBase(int, int)
- Constructor needs to know the initial x-offset for every
data points and the array length, the time array.
-
getData()
- Returns the data array.
-
isFull()
- Returns true of the array if full with time data.
-
push(int)
- Pushes in a new time point into the array.
-
reset()
- Resets the time array to a new array of the same dimension.
-
reset(int)
- Empties the array by setting it to a new int[].
XTimeBase
public XTimeBase(int length,
int offset)
- Constructor needs to know the initial x-offset for every
data points and the array length, the time array.
push
public void push(int xvalue)
- Pushes in a new time point into the array. The one at the
far end is discarded if it goes beyond the array length.
- Parameters:
- xvalue - the new time value to push.
reset
public void reset(int length)
- Empties the array by setting it to a new int[].
- Parameters:
- length - the dimension of new array.
reset
public void reset()
- Resets the time array to a new array of the same dimension.
isFull
public boolean isFull()
- Returns true of the array if full with time data.
getData
public int[] getData()
- Returns the data array.
All Packages Class Hierarchy This Package Previous Next Index