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/apollo/actions/ApolloActions.java

    r363 r1102  
    44import org.apollo.widgets.LinkedTrack;
    55import org.apollo.widgets.SampleRecorder;
    6 import org.expeditee.gui.DisplayIO;
     6import org.expeditee.gio.gesture.StandardGestureActions;
     7import org.expeditee.gui.DisplayController;
    78import org.expeditee.gui.Frame;
    8 import org.expeditee.gui.FrameMouseActions;
    99import org.expeditee.items.Text;
    1010
     
    1717public class ApolloActions {
    1818
    19         private ApolloActions() {} // Util construction
     19        /** Static-only class. */
     20        private ApolloActions()
     21        {
     22        }
    2023       
    21         /**
    22          * Attatches a new recorder to the cursor
    23          */
    24         public static void spawnRecorder() {
    25                
    26                 Frame target = DisplayIO.getCurrentFrame();
     24        /** Attaches a new recorder to the cursor. */
     25        public static void spawnRecorder()
     26        {
     27                Frame target = DisplayController.getCurrentFrame();
    2728                if (target  == null) return;
    2829
     
    3031                Text source = new Text(target.getNextItemID());
    3132                source.setParent(target);
    32                 source.setPosition(FrameMouseActions.MouseX, FrameMouseActions.MouseY);
     33                source.setPosition(DisplayController.getMousePosition());
    3334                SampleRecorder recWidget = new SampleRecorder(source, null);
    3435               
    3536                // Pick it up
    36                 FrameMouseActions.pickup(recWidget.getItems());
     37                StandardGestureActions.pickup(recWidget.getItems());
    3738        }
    3839       
     
    4243        public static void spawnLinkedTrack() {
    4344               
    44                 Frame target = DisplayIO.getCurrentFrame();
     45                Frame target = DisplayController.getCurrentFrame();
    4546                if (target  == null) return;
    4647
     
    4849                Text source = new Text(target.getNextItemID());
    4950                source.setParent(target);
    50                 source.setPosition(FrameMouseActions.MouseX, FrameMouseActions.MouseY);
     51                source.setPosition(DisplayController.getMousePosition());
    5152               
    5253                LinkedTrack ltWidget = new LinkedTrack(source, null);
    5354               
    5455                // Pick it up
    55                 FrameMouseActions.pickup(ltWidget.getItems());
     56                StandardGestureActions.pickup(ltWidget.getItems());
    5657        }
    5758       
     
    6465                // Create the launcher
    6566                FramePlaybackLauncher launcher = new FramePlaybackLauncher(null);
    66                 launcher.setPosition(FrameMouseActions.MouseX, FrameMouseActions.MouseY);
     67                launcher.setPosition(DisplayController.getMousePosition());
    6768
    6869                // Pick it up
    69                 FrameMouseActions.pickup(launcher);
     70                StandardGestureActions.pickup(launcher);
    7071        }
    7172       
Note: See TracChangeset for help on using the changeset viewer.