Changeset 67 for trunk/src/org/expeditee/gui/DisplayIO.java
- Timestamp:
- 05/19/08 12:03:18 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/DisplayIO.java
r58 r67 15 15 import javax.swing.JOptionPane; 16 16 17 import org.expeditee.actions.NavigationActions; 17 18 import org.expeditee.items.Item; 18 19 import org.expeditee.items.ItemParentStateChangedEvent; … … 54 55 private static Robot _Robot; 55 56 56 // public static JMenuBar _MenuBar = new JMenuBar();57 58 57 private static boolean _TwinFrames = false; 59 58 … … 61 60 * The title to display in the Title bar. 62 61 */ 63 public static final String TITLE = "Exp1 6May2008A";62 public static final String TITLE = "Exp17May2008A"; 64 63 65 64 private DisplayIO() { … … 114 113 } 115 114 116 /*117 * System.out.println("hs: " + hotspotPos + " start: " + start + " font: " +118 * size + " cursor: " + (cursorSize - start));119 */120 121 115 int[] pixels = new int[cursorSize * cursorSize]; 122 116 … … 229 223 230 224 /** 231 * Forces a complete repaint of the GUI and Frame232 */233 public static void repaint() {234 _Browser.repaint();235 }236 237 /**238 225 * Returns the top item (last added) of the Back-Stack (which is popped off) 239 226 * … … 519 506 520 507 /** 521 * Adds the given JMenu to the JMenuBar of the GUI522 *523 * @param menu524 * The menu to add525 */526 /*527 * public static void addMenu(JMenu menu) { if (menu.getItemCount() == 0)528 * return;529 *530 * _MenuBar.add(menu); // show progress _Browser.loadedMenu(menu.getText()); }531 */532 533 /**534 * Performs the same action as if the user had clicked on the MenuItem at535 * the given index in the Menu at the given index.536 *537 * @param menu538 * The index of the menu (starts from 0)539 * @param index540 * The index of the Item to simulate a click on (starts from 0)541 */542 /*543 * public static void activateMenuItem(int menu, int index) { if544 * (_MenuBar.getComponentCount() < menu) return;545 *546 * JMenu act = _MenuBar.getMenu(menu);547 *548 * if (act.getComponentCount() < index) return;549 *550 * act.getItem(index).doClick(); }551 *552 * public static int getMenuHeight() { if (_MenuBar.getHeight() < 5) return553 * 21;554 *555 * return _MenuBar.getHeight() - 5; }556 */557 558 /**559 508 * Returns the current mouse X coordinate. This coordinate is relative to 560 509 * the left edge of the frame the mouse is in. It takes into account the … … 589 538 590 539 public static void Back() { 540 NavigationActions.ResetLastAddToBack(); 541 591 542 int side = getCurrentSide(); 592 543
Note:
See TracChangeset
for help on using the changeset viewer.