|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
edu.wisc.ssec.mcidasv.probes.ProbeEvent<T>
public class ProbeEvent<T>
This class captures a change to a probe and stores both the previous and current (as of the event's creation) changed values.
Field Summary | |
---|---|
private T |
newValue
Current value of the probe. |
private T |
oldValue
Previous value of the probe. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ProbeEvent(ReadoutProbe source,
T oldValue,
T newValue)
Generated when a ReadoutProbe changes either its position,
color, or visibility. |
Method Summary | |
---|---|
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()
|
String |
toString()
Returns a brief summary of this event. |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final T oldValue
private final T newValue
Constructor Detail |
---|
public 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
.Method Detail |
---|
public ReadoutProbe getProbe()
public T getOldValue()
public T getNewValue()
public String toString()
toString
in class EventObject
[ProbeEvent@HASHCODE: source=...,
oldValue=..., newValue=...]
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |