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/src/org/expeditee/items/MagneticConstraint/Actions/DownALineAction.java

    r967 r1102  
    11package org.expeditee.items.MagneticConstraint.Actions;
    22
    3 import org.expeditee.gui.DisplayIO;
     3import org.expeditee.gui.DisplayController;
    44import org.expeditee.items.Item;
    55import org.expeditee.items.Text;
     
    1919                final int nextLineLength =
    2020                                nextLine.get(nextLine.size() - 1).getX() + nextLine.get(nextLine.size() - 1).getBoundsWidth() - nextLine.get(0).getX();
    21                 final int distanceThroughCurrentLine = DisplayIO.getMouseX() - startOfThisLine.getX();
     21                final int distanceThroughCurrentLine = DisplayController.getMouseX() - startOfThisLine.getX();
    2222                if(distanceThroughCurrentLine <= nextLineLength) {
    2323                        Item beneith = nextLine.get(0);
     
    4343                if(toMoveTo instanceof Text) {
    4444                        final Text asText = (Text) toMoveTo;
    45                         DisplayIO.setTextCursor(asText, Text.END);
    46                 } else DisplayIO.setCursorPosition(toMoveTo.getPosition(), false);
     45                        DisplayController.setTextCursor(asText, Text.END);
     46                } else DisplayController.setCursorPosition(toMoveTo.getPosition(), false);
    4747                return true;
    4848        }
Note: See TracChangeset for help on using the changeset viewer.