Changeset 1102 for trunk/src/org/apollo/actions/ApolloActions.java
- Timestamp:
- 05/10/18 16:04:51 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/apollo/actions/ApolloActions.java
r363 r1102 4 4 import org.apollo.widgets.LinkedTrack; 5 5 import org.apollo.widgets.SampleRecorder; 6 import org.expeditee.gui.DisplayIO; 6 import org.expeditee.gio.gesture.StandardGestureActions; 7 import org.expeditee.gui.DisplayController; 7 8 import org.expeditee.gui.Frame; 8 import org.expeditee.gui.FrameMouseActions;9 9 import org.expeditee.items.Text; 10 10 … … 17 17 public class ApolloActions { 18 18 19 private ApolloActions() {} // Util construction 19 /** Static-only class. */ 20 private ApolloActions() 21 { 22 } 20 23 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(); 27 28 if (target == null) return; 28 29 … … 30 31 Text source = new Text(target.getNextItemID()); 31 32 source.setParent(target); 32 source.setPosition( FrameMouseActions.MouseX, FrameMouseActions.MouseY);33 source.setPosition(DisplayController.getMousePosition()); 33 34 SampleRecorder recWidget = new SampleRecorder(source, null); 34 35 35 36 // Pick it up 36 FrameMouseActions.pickup(recWidget.getItems());37 StandardGestureActions.pickup(recWidget.getItems()); 37 38 } 38 39 … … 42 43 public static void spawnLinkedTrack() { 43 44 44 Frame target = Display IO.getCurrentFrame();45 Frame target = DisplayController.getCurrentFrame(); 45 46 if (target == null) return; 46 47 … … 48 49 Text source = new Text(target.getNextItemID()); 49 50 source.setParent(target); 50 source.setPosition( FrameMouseActions.MouseX, FrameMouseActions.MouseY);51 source.setPosition(DisplayController.getMousePosition()); 51 52 52 53 LinkedTrack ltWidget = new LinkedTrack(source, null); 53 54 54 55 // Pick it up 55 FrameMouseActions.pickup(ltWidget.getItems());56 StandardGestureActions.pickup(ltWidget.getItems()); 56 57 } 57 58 … … 64 65 // Create the launcher 65 66 FramePlaybackLauncher launcher = new FramePlaybackLauncher(null); 66 launcher.setPosition( FrameMouseActions.MouseX, FrameMouseActions.MouseY);67 launcher.setPosition(DisplayController.getMousePosition()); 67 68 68 69 // Pick it up 69 FrameMouseActions.pickup(launcher);70 StandardGestureActions.pickup(launcher); 70 71 } 71 72
Note:
See TracChangeset
for help on using the changeset viewer.