Package info.monitorenter.reflection
Class ObjRecorder2Trace2DAdapter
- java.lang.Object
-
- info.monitorenter.reflection.ObjRecorder2Trace2DAdapter
-
- All Implemented Interfaces:
java.util.EventListener
,javax.swing.event.ChangeListener
public class ObjRecorder2Trace2DAdapter extends java.lang.Object implements javax.swing.event.ChangeListener
A simple adapter that allows displaying of timestamped values from an inspection of the
on a Chart2D.ObjectRecorder
- Version:
- $Revision: 1.7 $
- Author:
- Achim Westermann
-
-
Constructor Summary
Constructors Constructor Description ObjRecorder2Trace2DAdapter(ITrace2D view, java.lang.Object toinspect, java.lang.String fieldname, long interval)
Creates a bridge from the given field of the given instance to inspect to the trace.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
void
setInterval(long interval)
Sets the interval for inspections in ms.void
stateChanged(javax.swing.event.ChangeEvent e)
-
-
-
Constructor Detail
-
ObjRecorder2Trace2DAdapter
public ObjRecorder2Trace2DAdapter(ITrace2D view, java.lang.Object toinspect, java.lang.String fieldname, long interval)
Creates a bridge from the given field of the given instance to inspect to the trace.- Parameters:
view
- the target trace that will show the inspected value.toinspect
- the instance to inpsect.fieldname
- the field on the instance to inspect.interval
- the interval of inspections in ms.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
setInterval
public void setInterval(long interval)
Sets the interval for inspections in ms.- Parameters:
interval
- the interval for inspections in ms.
-
stateChanged
public void stateChanged(javax.swing.event.ChangeEvent e)
- Specified by:
stateChanged
in interfacejavax.swing.event.ChangeListener
- See Also:
ChangeListener.stateChanged(javax.swing.event.ChangeEvent)
-
-