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

Constructor Index

 o XTimeBase(int, int)
Constructor needs to know the initial x-offset for every data points and the array length, the time array.

Method Index

 o getData()
Returns the data array.
 o isFull()
Returns true of the array if full with time data.
 o push(int)
Pushes in a new time point into the array.
 o reset()
Resets the time array to a new array of the same dimension.
 o reset(int)
Empties the array by setting it to a new int[].

Constructors

 o 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.

Methods

 o 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.
 o reset
 public void reset(int length)
Empties the array by setting it to a new int[].

Parameters:
length - the dimension of new array.
 o reset
 public void reset()
Resets the time array to a new array of the same dimension.

 o isFull
 public boolean isFull()
Returns true of the array if full with time data.

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index