Class EventReplay

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

public class EventReplay extends Timestamped
  • Field Details

    • 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 Details

  • Method Details

    • 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)