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, toString
protected IlvCombinedDataSet()
IlvCombinedDataSet
object.public int getDataSetCount()
getDataSetCount
in interface IlvDataSetList
public IlvDataSet getDataSet(int index)
getDataSet
in interface IlvDataSetList
public IlvDataSet[] getDataSets()
getDataSets
in interface IlvDataSetList
public int getDataSetIndex(IlvDataSet dataSet)
getDataSetIndex
in interface IlvDataSetList
public void setDataSet(int index, IlvDataSet dataSet)
setDataSet
in interface IlvDataSetList
public void setDataSets(IlvDataSet[] dataSets)
setDataSets
in interface IlvDataSetList
public boolean replaceDataSet(IlvDataSet oldDataSet, IlvDataSet newDataSet)
replaceDataSet
in interface IlvDataSetList
public void addDataSet(IlvDataSet dataSet)
addDataSet
in interface IlvDataSetList
public void addDataSet(int index, IlvDataSet dataSet)
addDataSet
in interface IlvDataSetList
public void removeDataSet(int index)
removeDataSet
in interface IlvDataSetList
public boolean removeDataSet(IlvDataSet dataSet)
removeDataSet
in interface IlvDataSetList
public int getMaxDataSetCount()
getMaxDataSetCount
in interface IlvDataSetList
setMaxDataSetCount(int)
public void setMaxDataSetCount(int max)
setMaxDataSetCount
in interface IlvDataSetList
public boolean isXValuesSorted()
false
.isXValuesSorted
in interface IlvDataSet
isXValuesSorted
in class IlvAbstractDataSet
IlvAbstractDataSet.isXValuesSorted()
public int getDataCount()
getDataCount
in interface IlvDataSet
getDataCount
in class IlvAbstractDataSet
protected 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 Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.