info.monitorenter.reflection
Class ObjRecorder2Trace2DAdapter

java.lang.Object
  extended by 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 ObjectRecorder on a Chart2D.

Version:
$Revision: 1.7 $
Author:
Achim Westermann

Constructor Summary
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
 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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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 class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.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 interface javax.swing.event.ChangeListener
See Also:
ChangeListener.stateChanged(javax.swing.event.ChangeEvent)


Copyright © 2001 - 2010 LGPL, All Rights Footloose.