public class ProbeEvent<T> extends EventObject
| Modifier and Type | Field and Description |
|---|---|
private T |
newValue
Current value of the probe.
|
private T |
oldValue
Previous value of the probe.
|
source| Constructor and Description |
|---|
ProbeEvent(ReadoutProbe source,
T oldValue,
T newValue)
Generated when a
ReadoutProbe changes either its position,
color, or visibility. |
| Modifier and Type | Method and Description |
|---|---|
T |
getNewValue()
Returns the current (as of this event) value of the probe.
|
T |
getOldValue()
Returns the value of the probe before this event was generated.
|
ReadoutProbe |
getProbe()
Returns the probe that generated this event.
|
String |
toString()
Returns a brief summary of this event.
|
getSourcepublic ProbeEvent(ReadoutProbe source, T oldValue, T newValue)
ReadoutProbe changes either its position,
color, or visibility. Currently stores either position, color, or
visibility both before and after the change.source - Probe that generated this event.oldValue - Old value of the probe.newValue - New value of the probe.NullPointerException - if any parameters are null.public ReadoutProbe getProbe()
public T getOldValue()
public T getNewValue()
public String toString()
toString in class EventObject[ProbeEvent@HASHCODE: source=...,
oldValue=..., newValue=...].