- Timestamp:
- 05/10/18 16:04:51 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/actions/ExploratorySearchActions.java
r919 r1102 19 19 package org.expeditee.actions; 20 20 21 import org.expeditee.core.Point; 22 import org.expeditee.gio.EcosystemManager; 23 import org.expeditee.gio.gesture.StandardGestureActions; 21 24 import org.expeditee.gui.Browser; 22 import org.expeditee.gui.Display IO;25 import org.expeditee.gui.DisplayController; 23 26 import org.expeditee.gui.Frame; 24 27 import org.expeditee.gui.FrameIO; 25 import org.expeditee.gui.FrameKeyboardActions;26 import org.expeditee.gui.FrameMouseActions;27 28 import org.expeditee.gui.FreeItems; 28 29 import org.expeditee.items.Item; … … 59 60 } 60 61 61 Text linkToBrowserSession = Display IO.getCurrentFrame().addText(FrameMouseActions.getX(), FrameMouseActions.getY(), " - Web Browser Session", null);62 linkToBrowserSession.setParent(Display IO.getCurrentFrame());63 FrameKeyboardActions.AddDate(linkToBrowserSession);64 FrameMouseActions.pickup(linkToBrowserSession);62 Text linkToBrowserSession = DisplayController.getCurrentFrame().addText(DisplayController.getMouseX(), DisplayController.getMouseY(), " - Web Browser Session", null); 63 linkToBrowserSession.setParent(DisplayController.getCurrentFrame()); 64 Text.AddDate(linkToBrowserSession); 65 StandardGestureActions.pickup(linkToBrowserSession); 65 66 66 67 // Create new frame … … 75 76 // Add web browser active overlay and @old 76 77 Text t = (Text) frame.addText(-150, 50, "@ao: 2", null, "overlayset2"); 77 t.setAnchorRight(-100 .0f);78 t.setAnchorTop(50 .0f);78 t.setAnchorRight(-100); 79 t.setAnchorTop(50); 79 80 t = (Text) frame.addText(-150, 50, "@old", null); 80 81 t.setFamily("Roboto Condensed"); … … 84 85 t.setJustification(Justification.right); 85 86 t.setLinkMark(false); 86 t.setAnchorLeft(9 .0f);87 t.setAnchorBottom(114 .0f);87 t.setAnchorLeft(9); 88 t.setAnchorBottom(114); 88 89 89 90 Text wt; … … 101 102 + ("--anchorLeft " + (lm + ExploratorySearchSettings.BROWSER_HORZ_OFFSET) + " --anchorRight " + rm + " --anchorTop " 102 103 + (ExploratorySearchSettings.BROWSER_VERT_OFFSET + tm) + " --anchorBottom " + bm + " ") 103 + ( Browser._theBrowser.getContentPane().getWidth() - ExploratorySearchSettings.BROWSER_HORZ_OFFSET - lm - rm) + " "104 + ( Browser._theBrowser.getContentPane().getHeight() - ExploratorySearchSettings.BROWSER_VERT_OFFSET - tm - bm) + " : " + url, null);104 + (EcosystemManager.getGraphicsManager().getWindowSize().getWidth() - ExploratorySearchSettings.BROWSER_HORZ_OFFSET - lm - rm) + " " 105 + (EcosystemManager.getGraphicsManager().getWindowSize().getHeight() - ExploratorySearchSettings.BROWSER_VERT_OFFSET - tm - bm) + " : " + url, null); 105 106 } else { 106 107 wt = frame.addText(ExploratorySearchSettings.BROWSER_HORZ_OFFSET + lm, ExploratorySearchSettings.BROWSER_VERT_OFFSET + tm, … … 122 123 // Replace any text item on cursor with link to a new mindmap 123 124 FreeItems.getInstance().clear(); 124 Text text = DisplayIO.getCurrentFrame().addText(FrameMouseActions.getX(), FrameMouseActions.getY(), " - Mindmap Session", null); 125 text.setParent(DisplayIO.getCurrentFrame()); 126 FrameKeyboardActions.AddDate(text); 127 FrameMouseActions.pickup(text); 125 Point cursorPos = DisplayController.getMousePosition(); 126 Text text = DisplayController.getCurrentFrame().addText(cursorPos.getX(), cursorPos.getY(), " - Mindmap Session", null); 127 text.setParent(DisplayController.getCurrentFrame()); 128 Text.AddDate(text); 129 StandardGestureActions.pickup(text); 128 130 Frame frame = FrameIO.CreateNewFrame(text); 129 131 text.setLink("" + frame.getNumber()); … … 132 134 frame.removeAllItems(frame.getItems()); 133 135 Text t = (Text) frame.addText(-150, 50, "@ao: 2", null, "overlayset3"); 134 t.setAnchorLeft(-150 .0f);135 t.setAnchorTop(50 .0f);136 t.setAnchorLeft(-150); 137 t.setAnchorTop(50); 136 138 t = (Text) frame.addText(-150, 50, "@old", null); 137 139 t.setFamily("Roboto Condensed"); … … 141 143 t.setJustification(Justification.right); 142 144 t.setLinkMark(false); 143 t.setAnchorLeft(9 .0f);144 t.setAnchorBottom(114 .0f);145 t.setAnchorLeft(9); 146 t.setAnchorBottom(114); 145 147 146 148 FrameIO.SaveFrame(frame); … … 168 170 } 169 171 170 Text linkToBrowserSession = DisplayIO.getCurrentFrame().addText(FrameMouseActions.getX(), FrameMouseActions.getY(), url, null); 171 linkToBrowserSession.setParent(DisplayIO.getCurrentFrame()); 172 FrameMouseActions.pickup(linkToBrowserSession); 172 Point cursorPos = DisplayController.getMousePosition(); 173 Text linkToBrowserSession = DisplayController.getCurrentFrame().addText(cursorPos.getX(), cursorPos.getY(), url, null); 174 linkToBrowserSession.setParent(DisplayController.getCurrentFrame()); 175 StandardGestureActions.pickup(linkToBrowserSession); 173 176 174 177 // Create new frame … … 183 186 // Add web browser active overlay and @old 184 187 Text t = (Text) frame.addText(-150, 50, "@ao: 2", null, "overlayset2"); 185 t.setAnchorLeft(-150 .0f);186 t.setAnchorTop(50 .0f);188 t.setAnchorLeft(-150); 189 t.setAnchorTop(50); 187 190 t = (Text) frame.addText(-150, 50, "@old", null); 188 191 t.setFamily("Roboto Condensed"); … … 192 195 t.setJustification(Justification.right); 193 196 t.setLinkMark(false); 194 t.setAnchorLeft(9 .0f);195 t.setAnchorBottom(114 .0f);197 t.setAnchorLeft(9); 198 t.setAnchorBottom(114); 196 199 197 200 Text wt; … … 209 212 + ("--anchorLeft " + (lm + ExploratorySearchSettings.BROWSER_HORZ_OFFSET) + " --anchorRight " + rm + " --anchorTop " 210 213 + (ExploratorySearchSettings.BROWSER_VERT_OFFSET + tm) + " --anchorBottom " + bm + " ") 211 + ( Browser._theBrowser.getContentPane().getWidth() - ExploratorySearchSettings.BROWSER_HORZ_OFFSET - lm - rm) + " "212 + ( Browser._theBrowser.getContentPane().getHeight() - ExploratorySearchSettings.BROWSER_VERT_OFFSET - tm - bm) + " : " + url, null);214 + (EcosystemManager.getGraphicsManager().getWindowSize().getWidth() - ExploratorySearchSettings.BROWSER_HORZ_OFFSET - lm - rm) + " " 215 + (EcosystemManager.getGraphicsManager().getWindowSize().getHeight() - ExploratorySearchSettings.BROWSER_VERT_OFFSET - tm - bm) + " : " + url, null); 213 216 } else { 214 217 wt = frame.addText(ExploratorySearchSettings.BROWSER_HORZ_OFFSET + lm, ExploratorySearchSettings.BROWSER_VERT_OFFSET + tm,
Note:
See TracChangeset
for help on using the changeset viewer.