DataObject
Introduction
The INT DataObject is a system of Xt intrinsic tools that provide for the
retrieval, storage and manipulation of sets or groups of data. DataObject and
its companion ChartObject are based on the MVC or
Model-View-Controller architecture first used in Smalltalk.
DataObject serves as the model component of the architecture,
while ChartObject serves as the view and EditObject as the
controller components.
Summary of components
DataObject provides the following object classes that can be used to classify
and manipulate sets of data:
- DataGroup. Allows the definition and manipulation of
multiple data objects as a single group. For example, a group may contain
sampled objects, series objects, grids, or even other groups.
- DataGrid. Allows the definition and manipulation of a
two-dimensional array of data values as a single object.
- DataLabel. Allows the definition and manipulation of a set
of labels that are used to identify visually the data in a chart or tabular
view.
- DataSampled. Allows the definition and manipulation of a
one-dimensional array of data as a single object.
- DataSeries. Allows the definition and manipulation of a
series of x,y pairs as a single object.
- DataSequentialSeries. Is the same as the DataSeries object
except that it requires the X data values to be sequential (increasing).
- DataTimeLabel. Provides automatic time annotation for an axis object.
These classes all are Xt objects that can be manipulated using a series of
resources, functions, and callbacks, just like any standard Motif/Xt object or
widget. The data objects should not be managed, and modification of the data
can be accomplished using either standard Xt resource setting mechanisms or the
convenience functions provided by INT.