public abstract class IlvCombinedDataSet extends IlvAbstractDataSet implements IlvDataSetList
For a data set that depends on just another data set, you can also use the
class IlvFilterDataSet.
IlvFilterDataSet,
Serialized FormDEFAULT_UNDEF_VALUE| Modifier | Constructor and Description |
|---|---|
protected |
IlvCombinedDataSet()
Creates a new
IlvCombinedDataSet object. |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataSet(IlvDataSet dataSet)
Appends a data set to the end of the list.
|
void |
addDataSet(int index,
IlvDataSet dataSet)
Inserts a data set at the specified index.
|
protected int |
computeDataCount()
Computes the data count of this data set.
|
protected void |
dataSetContentsChanged(DataSetContentsEvent event)
Called when one of the data sets referenced by this object has been
modified.
|
protected void |
dataSetPropertyChanged(DataSetPropertyEvent event)
Called when a property of one of the data sets referenced by this object
has been modified.
|
protected void |
dataSetsChanged()
Invoked when the referenced data sets change.
|
void |
dispose()
Cleans up this data set and drops references to objects to
help garbage collection.
|
void |
fireDataSetContentsEvent(DataSetContentsEvent event)
Overridden to update the data count.
|
int |
getDataCount()
Returns the number of data points held by this data set.
|
IlvDataSet |
getDataSet(int index)
Returns the data set at the specified index.
|
int |
getDataSetCount()
Returns the number of managed data sets.
|
int |
getDataSetIndex(IlvDataSet dataSet)
Returns the index of a data set in the list.
|
IlvDataSet[] |
getDataSets()
Returns an array containing all the managed data sets.
|
int |
getMaxDataSetCount()
Returns the maximum number of data set that this combined data set can hold.
|
boolean |
isXValuesSorted()
Indicates whether the X values of the data points managed by
this data set are sorted by increasing order.
|
boolean |
removeDataSet(IlvDataSet dataSet)
Removes the specified data set.
|
void |
removeDataSet(int index)
Removes the data set at the specified index.
|
boolean |
replaceDataSet(IlvDataSet oldDataSet,
IlvDataSet newDataSet)
Replaces a data set by another data set.
|
void |
setDataSet(int index,
IlvDataSet dataSet)
Replaces the data set at the specified position.
|
void |
setDataSets(IlvDataSet[] dataSets)
Initializes the list contents with the specified array.
|
void |
setMaxDataSetCount(int max)
Specifies that this combined data set should not hold more than a given number of
data sets.
|
protected void |
updateDataCount()
Invoked when the data count needs to be updated.
|
addData, addDataSetListener, computeLimits, computeMinimumXDifference, dataAdded, dataChanged, endBatch, fireDataAddedEvent, fireDataChangedEvent, fireDataSetPropertyEvent, getData, getDataBetween, getDataInside, getDataInside, getDataLabel, getMinimumXDifference, getName, getProperty, getUndefValue, getXData, getXRange, getXRange, getYData, getYRange, getYRange, invalidateLimits, invalidateLimits, invalidateLimits, isBatched, isEditable, isXRangeIncludingUndefinedPoints, putProperty, removeDataSetListener, setData, setLimitsValid, setName, setUndefValue, setXRangeIncludingUndefinedPoints, startBatch, toStringprotected IlvCombinedDataSet()
IlvCombinedDataSet object.public int getDataSetCount()
getDataSetCount in interface IlvDataSetListpublic IlvDataSet getDataSet(int index)
getDataSet in interface IlvDataSetListpublic IlvDataSet[] getDataSets()
getDataSets in interface IlvDataSetListpublic int getDataSetIndex(IlvDataSet dataSet)
getDataSetIndex in interface IlvDataSetListpublic void setDataSet(int index,
IlvDataSet dataSet)
setDataSet in interface IlvDataSetListpublic void setDataSets(IlvDataSet[] dataSets)
setDataSets in interface IlvDataSetListpublic boolean replaceDataSet(IlvDataSet oldDataSet, IlvDataSet newDataSet)
replaceDataSet in interface IlvDataSetListpublic void addDataSet(IlvDataSet dataSet)
addDataSet in interface IlvDataSetListpublic void addDataSet(int index,
IlvDataSet dataSet)
addDataSet in interface IlvDataSetListpublic void removeDataSet(int index)
removeDataSet in interface IlvDataSetListpublic boolean removeDataSet(IlvDataSet dataSet)
removeDataSet in interface IlvDataSetListpublic int getMaxDataSetCount()
getMaxDataSetCount in interface IlvDataSetListsetMaxDataSetCount(int)public void setMaxDataSetCount(int max)
setMaxDataSetCount in interface IlvDataSetListpublic boolean isXValuesSorted()
false.isXValuesSorted in interface IlvDataSetisXValuesSorted in class IlvAbstractDataSetIlvAbstractDataSet.isXValuesSorted()public int getDataCount()
getDataCount in interface IlvDataSetgetDataCount in class IlvAbstractDataSetprotected int computeDataCount()
The default implementation returns the smallest data count among the referenced data sets.
protected void updateDataCount()
computeDataCount() method.dataSetsChanged()public void fireDataSetContentsEvent(DataSetContentsEvent event)
protected void dataSetsChanged()
This method is called when data sets are added or removed from the combined data set. The default implementation performs the following operations:
protected void dataSetContentsChanged(DataSetContentsEvent event)
The default implementation deals only with batch begin/end. Subclasses must override this method in order to
updateDataCount(), to recompute the current
data count (unless the method getDataCount() is
overridden),invalidateLimits(), to invalidate the x-range
and y-range caches (unless the methods getXRange and
getYRange are overridden).fireDataSetContentsEvent will also invalidate the
current data count (unless the method getDataCount() is
overridden) and invalidate the x-range and y-range caches (unless the
methods getXRange and getYRange are overridden).protected void dataSetPropertyChanged(DataSetPropertyEvent event)
The default implementation does nothing.
public void dispose()
Note: After calling this function, this data set is no longer functional. You should have disconnected this data set from all other objects (data sources, renderers, charts) before calling this function.
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.