diva.util.jester
Class EventRecorder

java.lang.Object
  extended by diva.util.jester.EventRecorder

public class EventRecorder
extends Object

EventRecorder listens to all of the mouse and keyboard events on a given component and records these into a sequence which can then be played back using an EventPlayer object.

Version:
$Revision: 1.2 $
Author:
Michael Shilman (michaels@eecs.berkeley.edu)
See Also:
EventPlayer

Constructor Summary
EventRecorder(Component component)
          Record events from the given component.
 
Method Summary
 void record()
          Start recording events on the constructor-specified component.
 InputEvent[] stop()
          Stop recording events on the constructor-specified component and return the recorded events from this session as an array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventRecorder

public EventRecorder(Component component)
Record events from the given component.

Method Detail

record

public void record()
Start recording events on the constructor-specified component.


stop

public InputEvent[] stop()
Stop recording events on the constructor-specified component and return the recorded events from this session as an array.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.