Package jcckit.plot
Class PlotEvent
java.lang.Object
jcckit.plot.PlotEvent
A plot event signales some changes of a
Plot
.
It has three attributes:
- source: Indicates the Plot instance responsible for this event.
- type: The type of event.
- message: The message object. Its meaning depends on the
type of event:
Type Meaning of the message object PlotEventType.DATA_PLOT_CONNECTED
,PlotEventType.DATA_PLOT_DISCONNECTED
The DataPlot
(dis)connected with thePlot
instance specified by the source.PlotEventType.DATA_PLOT_CHANGED
An Integer indicating the lowest index of those curves which have been changed. PlotEventType.DATA_CURVE_CHANGED
An Integer indicating the index of the curve which has been changed.
-
Constructor Summary
ConstructorDescriptionPlotEvent
(Plot source, PlotEventType type, Object message) Creates a new event for the specified source, type, and message. -
Method Summary
Modifier and TypeMethodDescriptionReturns the message object.Returns the source of this event.getType()
Returns the event type.
-
Constructor Details
-
PlotEvent
Creates a new event for the specified source, type, and message.- Parameters:
source
- Plot causing this event.type
- Type of the event. Possible values arePlotEventType.DATA_PLOT_CHANGED
,PlotEventType.DATA_CURVE_CHANGED
,PlotEventType.DATA_PLOT_CONNECTED
, andPlotEventType.DATA_PLOT_DISCONNECTED
.message
- Message object. Can be null
-
-
Method Details
-
getSource
Returns the source of this event. -
getType
Returns the event type. -
getMessage
Returns the message object.
-