public class IlvXSortedDataSet extends IlvFilterDataSet implements Cloneable
All the immediate data access methods on this data set are implemented by an indirection to the underlying data set.
An instance of this class automatically propagates notification events from the underlying data set to its own listeners.
IlvDataSet.isXValuesSorted()
,
Serialized FormDEFAULT_UNDEF_VALUE
Constructor and Description |
---|
IlvXSortedDataSet()
Creates a sorted data set without any underlying data set.
|
IlvXSortedDataSet(IlvDataSet dataSet)
Creates a sorted data set.
|
Modifier and Type | Method and Description |
---|---|
void |
addData(double x,
double y)
This method adds the point to the end of the underlying data set.
|
Object |
clone()
Returns a copy of this object.
|
void |
disconnect()
Drops references to objects to help garbage collection.
|
void |
dispose()
Cleans up this data set and drops references to objects to
help garbage collection.
|
String |
getDataLabel(int pos)
The implementation here delegates to the underlying data set, applying
index conversion.
|
double |
getXData(int pos)
The implementation here delegates to the underlying data set, applying
index conversion.
|
IlvDataInterval |
getXRange(IlvDataInterval range)
The implementation here looks at the first and last X values.
|
double |
getYData(int pos)
The implementation here delegates to the underlying data set, applying
index conversion.
|
boolean |
isXValuesSorted()
The implementation here always returns
true . |
void |
noteAfterDataChanged(int firstIdx,
int lastIdx)
Reacts on an
AFTER_DATA_CHANGED event from the underlying
data set. |
void |
noteBeforeDataChanged(int firstIdx,
int lastIdx)
Reacts on a
BEFORE_DATA_CHANGED event from the underlying
data set. |
void |
noteDataAdded(int firstIdx,
int lastIdx)
Reacts on a
DATA_ADDED event from the underlying data set. |
void |
noteDataChanged(int firstIdx,
int lastIdx)
Reacts on a
DATA_CHANGED event from the underlying data set. |
void |
noteDataLabelChanged(int firstIdx,
int lastIdx)
Reacts on a
DATA_LABEL_CHANGED event from the underlying
data set. |
void |
noteFullUpdate()
Reacts on a
FULL_UPDATE event from the underlying data set. |
void |
setData(int pos,
double x,
double y)
The implementation here delegates to the underlying data set, applying
index conversion.
|
getDataCount, getFilteredDataSet, getName, getUndefValue, getYRange, isEditable, noteBatchBegin, noteBatchEnd, noteDataSetPropertyChanged, setFilteredDataSet, setName
addDataSetListener, computeLimits, computeMinimumXDifference, dataAdded, dataChanged, endBatch, fireDataAddedEvent, fireDataChangedEvent, fireDataSetContentsEvent, fireDataSetPropertyEvent, getData, getDataBetween, getDataInside, getDataInside, getMinimumXDifference, getProperty, getXRange, getYRange, invalidateLimits, invalidateLimits, invalidateLimits, isBatched, isXRangeIncludingUndefinedPoints, putProperty, removeDataSetListener, setLimitsValid, setUndefValue, setXRangeIncludingUndefinedPoints, startBatch, toString
public IlvXSortedDataSet()
setFilteredDataSet
in order to specify the
underlying data set.public IlvXSortedDataSet(IlvDataSet dataSet)
dataSet
- The underlying data set.public double getXData(int pos)
getXData
in interface IlvDataSet
getXData
in class IlvFilterDataSet
pos
- a data point index, >= 0, < getDataCount()
public double getYData(int pos)
getYData
in interface IlvDataSet
getYData
in class IlvFilterDataSet
pos
- a data point index, >= 0, < getDataCount()
public void setData(int pos, double x, double y)
setData
in interface IlvDataSet
setData
in class IlvFilterDataSet
pos
- a data point index, >= 0, < getDataCount()
x
- the new x coordinate of the point (if this data set supports
setting arbitrary x values)y
- the new y coordinate of the pointpublic void addData(double x, double y)
addData
in interface IlvDataSet
addData
in class IlvFilterDataSet
x
- the x coordinate of the new pointy
- the y coordinate of the new pointpublic String getDataLabel(int pos)
getDataLabel
in interface IlvDataSet
getDataLabel
in class IlvFilterDataSet
pos
- a data point index, >= 0, < getDataCount()
public IlvDataInterval getXRange(IlvDataInterval range)
getXRange
in interface IlvDataSet
getXRange
in class IlvFilterDataSet
IlvAbstractDataSet.isXRangeIncludingUndefinedPoints()
public boolean isXValuesSorted()
true
.isXValuesSorted
in interface IlvDataSet
isXValuesSorted
in class IlvFilterDataSet
public void noteBeforeDataChanged(int firstIdx, int lastIdx)
BEFORE_DATA_CHANGED
event from the underlying
data set.noteBeforeDataChanged
in class IlvFilterDataSet
firstIdx
- Index of first point that will be modified.lastIdx
- Index of last point that will be modified.public void noteAfterDataChanged(int firstIdx, int lastIdx)
AFTER_DATA_CHANGED
event from the underlying
data set.noteAfterDataChanged
in class IlvFilterDataSet
firstIdx
- Index of first point that has been modified.lastIdx
- Index of last point that has been modified.public void noteDataChanged(int firstIdx, int lastIdx)
DATA_CHANGED
event from the underlying data set.noteDataChanged
in class IlvFilterDataSet
firstIdx
- Index of first point that was modified.lastIdx
- Index of last point that was modified.public void noteDataAdded(int firstIdx, int lastIdx)
DATA_ADDED
event from the underlying data set.noteDataAdded
in class IlvFilterDataSet
firstIdx
- Index of first point that was added.lastIdx
- Index of last point that was added.public void noteDataLabelChanged(int firstIdx, int lastIdx)
DATA_LABEL_CHANGED
event from the underlying
data set.noteDataLabelChanged
in class IlvFilterDataSet
firstIdx
- Index of first point that was modified.lastIdx
- Index of last point that was modified.public void noteFullUpdate()
FULL_UPDATE
event from the underlying data set.noteFullUpdate
in class IlvFilterDataSet
public void dispose()
Note: After calling this function, this data set is no longer functional.
dispose
in class IlvFilterDataSet
public void disconnect()
Note: After calling this function, and after some changes occurred in the underlying data set, this data set is no longer functional.
disconnect
in class IlvFilterDataSet
public Object clone()
clone
in class IlvFilterDataSet
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.