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 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
Constructors Constructor Description EventReplay(Component component, Frame frame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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:3899protected 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(String scenario)
void
replay(IComponentEventLog component)
void
replay(IEventLog event)
void
replay(IKeyEventLog key)
void
replay(IMouseEventLog mouse)
void
replay(IWindowEventLog window)
void
replay(Scenario scenario)
protected void
stop()
protected void
unmute()
-
-
-
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)
-
-