Package info.monitorenter.reflection
Class ObjRecorder2Trace2DAdapter
java.lang.Object
info.monitorenter.reflection.ObjRecorder2Trace2DAdapter
- All Implemented Interfaces:
EventListener
,ChangeListener
A simple adapter that allows displaying of timestamped values from an
inspection of the
ObjectRecorder
on a
Chart2D.
- Version:
- $Revision: 1.7 $
- Author:
- Achim Westermann
-
Constructor Summary
ConstructorsConstructorDescriptionObjRecorder2Trace2DAdapter
(ITrace2D view, Object toinspect, String fieldname, long interval) Creates a bridge from the given field of the given instance to inspect to the trace. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
void
setInterval
(long interval) Sets the interval for inspections in ms.void
-
Constructor Details
-
ObjRecorder2Trace2DAdapter
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 Details
-
equals
-
hashCode
public int hashCode() -
setInterval
public void setInterval(long interval) Sets the interval for inspections in ms.- Parameters:
interval
- the interval for inspections in ms.
-
stateChanged
- Specified by:
stateChanged
in interfaceChangeListener
- See Also:
-