info.monitorenter.reflection
Class ObjRecorder2Trace2DAdapter

java.lang.Object
  extended by info.monitorenter.reflection.ObjRecorder2Trace2DAdapter
All Implemented Interfaces:
EventListener, ChangeListener

public class ObjRecorder2Trace2DAdapter
extends Object
implements ChangeListener

A simple adapter that allows displaying of timestamped values from an inspection of the ObjectRecorder on a Chart2D.

Version:
$Revision: 1.4 $
Author:
Achim Westermann

Constructor Summary
ObjRecorder2Trace2DAdapter(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
 void setInterval(long interval)
          Sets the interval for inspections in ms.
 void stateChanged(ChangeEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjRecorder2Trace2DAdapter

public ObjRecorder2Trace2DAdapter(ITrace2D view,
                                  Object toinspect,
                                  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

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(ChangeEvent e)
Specified by:
stateChanged in interface ChangeListener
See Also:
ChangeListener.stateChanged(javax.swing.event.ChangeEvent)


Copyright © 2001 - 2007 LGPL, All Rights Footloose.