org.jzy3d.junit.replay
Class EventReplay

java.lang.Object
  extended by org.jzy3d.junit.replay.Timestamped
      extended by org.jzy3d.junit.replay.EventReplay

public class EventReplay
extends Timestamped


Field Summary
protected  Component component
           
protected  Scenario currentScenario
           
protected  IMouseEventLog[] drag
           
protected  Frame frame
           
protected  int[] keys
           
protected  boolean mustStop
           
protected  boolean mute
           
protected  Robot robot
           
 
Fields inherited from class org.jzy3d.junit.replay.Timestamped
t
 
Constructor Summary
EventReplay(Component component, Frame frame)
           
 
Method Summary
protected  void addFocusListener(Component component, Frame frame)
           
protected  void addVerifyingListeners(Component component)
           
protected  void configureFocus(Component component, Frame frame)
           
protected  void debug(IEventLog event)
           
protected  boolean detectDragEnd(IMouseEventLog mouse)
          MOUSE_PRESSED, x:170, y:154, bt:0, since:925 MOUSE_DRAGGED, x:149, y:171, bt:0, since:1428 MOUSE_RELEASED, x:125, y:56, bt:0, since:3898 MOUSE_MOVED, x:107, y:55, bt:0, since:3899
protected  void doKeyPress(IKeyEventLog key)
           
protected  void doKeyRelease(IKeyEventLog key)
           
protected  boolean full(IMouseEventLog[] drag)
           
 Robot getRobot()
           
protected  boolean isMouseMoveOrDrag(IMouseEventLog mouse)
           
protected  void log(IEventLog event)
           
protected  void log(IEventLog event, String info)
           
protected  int moveX(IMouseEventLog mouse, Insets insets)
           
protected  int moveY(IMouseEventLog mouse, Insets insets)
           
protected  void mute()
           
 void replay(IComponentEventLog component)
           
 void replay(IEventLog event)
           
 void replay(IKeyEventLog key)
           
 void replay(IMouseEventLog mouse)
           
 void replay(IWindowEventLog window)
           
 void replay(Scenario scenario)
           
 void replay(String scenario)
           
protected  void stop()
           
protected  void unmute()
           
 
Methods inherited from class org.jzy3d.junit.replay.Timestamped
debugMs, debugMs, elapsedMs, elapsedMs, elapsedMs, now, since, since, start, startup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

protected Component component

frame

protected Frame frame

robot

protected Robot robot

currentScenario

protected Scenario currentScenario

mute

protected boolean mute

mustStop

protected boolean mustStop

keys

protected int[] keys

drag

protected IMouseEventLog[] drag
Constructor Detail

EventReplay

public EventReplay(Component component,
                   Frame frame)
Method Detail

configureFocus

protected void configureFocus(Component component,
                              Frame frame)

replay

public void replay(String scenario)
            throws Exception
Throws:
Exception

replay

public void replay(Scenario scenario)

replay

public void replay(IEventLog event)

replay

public void replay(IMouseEventLog mouse)

moveY

protected int moveY(IMouseEventLog mouse,
                    Insets insets)

moveX

protected int moveX(IMouseEventLog mouse,
                    Insets insets)

replay

public void replay(IKeyEventLog key)

doKeyPress

protected void doKeyPress(IKeyEventLog key)

doKeyRelease

protected void doKeyRelease(IKeyEventLog key)

mute

protected void mute()

unmute

protected void unmute()

stop

protected void stop()

replay

public void replay(IWindowEventLog window)

replay

public void replay(IComponentEventLog component)

log

protected void log(IEventLog event)

log

protected void log(IEventLog event,
                   String info)

getRobot

public Robot getRobot()

detectDragEnd

protected boolean detectDragEnd(IMouseEventLog mouse)
MOUSE_PRESSED, x:170, y:154, bt:0, since:925 MOUSE_DRAGGED, x:149, y:171, bt:0, since:1428 MOUSE_RELEASED, x:125, y:56, bt:0, since:3898 MOUSE_MOVED, x:107, y:55, bt:0, since:3899

Parameters:
mouse -

full

protected boolean full(IMouseEventLog[] drag)

debug

protected void debug(IEventLog event)

isMouseMoveOrDrag

protected boolean isMouseMoveOrDrag(IMouseEventLog mouse)

addVerifyingListeners

protected void addVerifyingListeners(Component component)

addFocusListener

protected void addFocusListener(Component component,
                                Frame frame)


Copyright © 2013. All rights reserved.