Package org.jzy3d.junit.replay
Class EventReplay
- java.lang.Object
-
- org.jzy3d.junit.replay.Timestamped
-
- org.jzy3d.junit.replay.EventReplay
-
public class EventReplay extends Timestamped
-
-
Field Summary
Fields Modifier and Type Field Description protected Componentcomponentprotected ScenariocurrentScenarioprotected IMouseEventLog[]dragprotected Frameframeprotected int[]keysprotected booleanmustStopprotected booleanmuteprotected Robotrobot-
Fields inherited from class org.jzy3d.junit.replay.Timestamped
t
-
-
Constructor Summary
Constructors Constructor Description EventReplay(Component component, Frame frame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddFocusListener(Component component, Frame frame)protected voidaddVerifyingListeners(Component component)protected voidconfigureFocus(Component component, Frame frame)protected voiddebug(IEventLog event)protected booleandetectDragEnd(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:3899protected voiddoKeyPress(IKeyEventLog key)protected voiddoKeyRelease(IKeyEventLog key)protected booleanfull(IMouseEventLog[] drag)RobotgetRobot()protected booleanisMouseMoveOrDrag(IMouseEventLog mouse)protected voidlog(IEventLog event)protected voidlog(IEventLog event, String info)protected intmoveX(IMouseEventLog mouse, Insets insets)protected intmoveY(IMouseEventLog mouse, Insets insets)protected voidmute()voidreplay(String scenario)voidreplay(IComponentEventLog component)voidreplay(IEventLog event)voidreplay(IKeyEventLog key)voidreplay(IMouseEventLog mouse)voidreplay(IWindowEventLog window)voidreplay(Scenario scenario)protected voidstop()protected voidunmute()
-
-
-
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
-
-
Method Detail
-
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)
-
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)
-
-