Ignore:
Timestamp:
05/10/18 16:04:51 (6 years ago)
Author:
davidb
Message:

Reworking of the code-base to separate logic from graphics. This version of Expeditee now supports a JFX graphics as an alternative to SWING

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/org/expeditee/gui/FrameMouseActionsTest.java

    r361 r1102  
    1616                testLeftRanging(title);
    1717
    18                 String newFrameName = DisplayIO.getCurrentFrame().getName();
     18                String newFrameName = DisplayController.getCurrentFrame().getName();
    1919                Navigation.Back();
    2020
     
    3030                DisplayIOTest.drawLine();
    3131               
    32                 newFrameName = DisplayIO.getCurrentFrame().getName();
     32                newFrameName = DisplayController.getCurrentFrame().getName();
    3333                Navigation.Back();
    3434               
     
    4545        private void testLeftRanging(Text title) throws InterruptedException {
    4646                int y = title.getY() - 2;
    47                 DisplayIO.setCursorPosition(title.getX(), y);
     47                DisplayController.setCursorPosition(title.getX(), y);
    4848                Thread.sleep(500);
    49                 DisplayIO.pressMouse(InputEvent.BUTTON1_MASK);
     49                DisplayController.pressMouse(InputEvent.BUTTON1_MASK);
    5050                Thread.sleep(100);
    51                 DisplayIO.setCursorPosition(title.getX() + title.getBoundsWidth() / 2,
     51                DisplayController.setCursorPosition(title.getX() + title.getBoundsWidth() / 2,
    5252                                y);
    5353                Thread.sleep(500);
    54                 DisplayIO.releaseMouse(InputEvent.BUTTON1_MASK);
     54                DisplayController.releaseMouse(InputEvent.BUTTON1_MASK);
    5555                Thread.sleep(100);
    5656
     
    5959
    6060                // Highlight then unhighlight
    61                 DisplayIO.setCursorPosition(title.getX(), y);
     61                DisplayController.setCursorPosition(title.getX(), y);
    6262                Thread.sleep(500);
    63                 DisplayIO.pressMouse(InputEvent.BUTTON1_MASK);
     63                DisplayController.pressMouse(InputEvent.BUTTON1_MASK);
    6464                Thread.sleep(100);
    65                 DisplayIO.setCursorPosition(title.getX() + title.getBoundsWidth() / 2,
     65                DisplayController.setCursorPosition(title.getX() + title.getBoundsWidth() / 2,
    6666                                y);
    6767                Thread.sleep(500);
    68                 DisplayIO.setCursorPosition(title.getX(), y);
     68                DisplayController.setCursorPosition(title.getX(), y);
    6969                Thread.sleep(500);
    70                 DisplayIO.releaseMouse(InputEvent.BUTTON1_MASK);
     70                DisplayController.releaseMouse(InputEvent.BUTTON1_MASK);
    7171                Thread.sleep(500);
    7272
Note: See TracChangeset for help on using the changeset viewer.