public class DataSetContentsEvent extends EventObject implements DataSetEvent
IlvDataSet
when its contents changes.DataSetListener
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
AFTER_DATA_CHANGED
Type of event sent after the data points have been modified.
|
static int |
BATCH_BEGIN
Type of event sent when a series of events starts.
|
static int |
BATCH_END
Type of event sent when a series of events is terminated.
|
static int |
BEFORE_DATA_CHANGED
Type of event sent before the data points are modified.
|
static int |
DATA_ADDED
Type of event sent after the data points are appended to a
data set.
|
static int |
DATA_CHANGED
Type of event sent after the data points have been modified,
when no pre-event notification is available.
|
static int |
DATA_LABEL_CHANGED
Type of event sent after the data point labels have been modified.
|
static int |
FULL_UPDATE
Type of event sent when the whole contents of the data set has been
modified.
|
source
Constructor and Description |
---|
DataSetContentsEvent(IlvDataSet dataSet)
Describes a full update of the data set.
|
DataSetContentsEvent(IlvDataSet dataSet,
DataSetContentsEvent source)
Describes a change on the data set from an existing event.
|
DataSetContentsEvent(IlvDataSet dataSet,
int type,
int pointIndex)
Describes a change in a data point.
|
DataSetContentsEvent(IlvDataSet dataSet,
int type,
int firstIdx,
int lastIdx)
Describes a change in all the data points between the specified
indices.
|
Modifier and Type | Method and Description |
---|---|
IlvDataSet |
getDataSet()
Returns the source of the event, for example the data set on which the change
occurred.
|
int |
getFirstIdx()
Returns the index of the first data point impacted by the modification.
|
int |
getLastIdx()
Returns the index of the last data point impacted by the modification.
|
int |
getType()
Returns the type of the event.
|
String |
toString()
Returns a string representation of this event.
|
getSource
public static final int BATCH_BEGIN
You are not meant to send this type of event directly. Only the class
IlvAbstractDataSet
sends it.
BATCH_END
,
IlvAbstractDataSet.startBatch()
,
Constant Field Valuespublic static final int BATCH_END
You are not meant to send this type of event directly. Only the class
IlvAbstractDataSet
sends it.
BATCH_BEGIN
,
IlvAbstractDataSet.endBatch()
,
Constant Field Valuespublic static final int BEFORE_DATA_CHANGED
AFTER_DATA_CHANGED
,
getType()
,
Constant Field Valuespublic static final int AFTER_DATA_CHANGED
AFTER_DATA_CHANGED
event is always sent after an
BEFORE_DATA_CHANGED
event. If no pre-event notification
is available, a single DATA_CHANGED
event is sent.getType()
,
Constant Field Valuespublic static final int DATA_CHANGED
Note: When a chart receives a DATA_CHANGED
event from a
data set, the chart area is repainted entirely. It is therefore more
efficient if the data set sends pairs of
BEFORE_DATA_CHANGED
/AFTER_DATA_CHANGED
events instead of
DATA_CHANGED
events.
AFTER_DATA_CHANGED
,
getType()
,
Constant Field Valuespublic static final int DATA_ADDED
getType()
,
Constant Field Valuespublic static final int DATA_LABEL_CHANGED
getType()
,
Constant Field Valuespublic static final int FULL_UPDATE
getType()
,
Constant Field Valuespublic DataSetContentsEvent(IlvDataSet dataSet, int type, int firstIdx, int lastIdx)
dataSet
- The modified data set.type
- The type of the modification.firstIdx
- The index of the first data point impacted by the modification.lastIdx
- The index of the first data point impacted by the modification.public DataSetContentsEvent(IlvDataSet dataSet, DataSetContentsEvent source)
DataSetContentsEvent
object whose attributes are initialized from the source event attributes
except the source data set that is set to the specified one.dataSet
- The modified data set.source
- The event to forward.public DataSetContentsEvent(IlvDataSet dataSet)
FULL_UPDATE
public DataSetContentsEvent(IlvDataSet dataSet, int type, int pointIndex)
public int getFirstIdx()
public int getLastIdx()
public int getType()
public IlvDataSet getDataSet()
getDataSet
in interface DataSetEvent
public String toString()
toString
in class EventObject
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.