Changeset 26717 for other-projects/GlamED/trunk/src/org/honours/gui
- Timestamp:
- 2013-01-14T17:43:14+13:00 (11 years ago)
- Location:
- other-projects/GlamED/trunk/src/org/honours/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/GlamED/trunk/src/org/honours/gui/HonoursFrameIO.java
r26699 r26717 160 160 MessageBay.errorMessage("No notes to display"); 161 161 162 //TODO: Create new note layer here?163 162 164 163 return; -
other-projects/GlamED/trunk/src/org/honours/gui/Interfaces.java
r26697 r26717 1 1 package org.honours.gui; 2 2 3 import java.awt.Dimension; 3 4 import java.util.List; 4 5 5 6 import org.expeditee.gui.*; 7 import org.expeditee.items.Item; 6 8 import org.expeditee.items.Text; 7 9 … … 48 50 private static String _overlayAnnotationData = "overlay-annotation"; 49 51 50 51 /** Method to set up overlay locations relative to the screen size. **/52 public static void setUpOverlayLocations(){53 54 }55 56 52 /** 57 53 * This method sets up the main overlay on the profile … … 61 57 public static void setUpMainOverlay(Frame frame){ 62 58 59 60 63 61 List<Text> list = frame.getBodyTextItems(true); 64 62 … … 90 88 91 89 FrameKeyboardActions.Refresh(); 90 } 91 92 93 /** Method to set up overlay locations relative to the screen size. **/ 94 public static void setUpOverlayLocations(CollectionItem cItem){ 95 96 Frame frame = cItem.getFrame(); 97 //Dimension dim = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); 98 99 //Find the location of the frame name text item and use that for the overlay links. 100 Item nameItem = frame.getNameItem(); 101 102 int x = nameItem.getX(); 103 104 _mainOverAoX = x; 105 _toolbarAoX = x; 106 _toggleAoX = x; 107 _notesAoX = x; 108 109 } 110 111 public static void resetOverlayPosition(Text t) { 112 Dimension maxSize = FrameGraphics.getMaxFrameSize(); 113 if (maxSize != null) { 114 // setMaxWidth(maxSize.width); 115 t.setPosition(maxSize.width - t.getBoundsWidth(), t.getBoundsHeight()); 116 } 92 117 } 93 118
Note:
See TracChangeset
for help on using the changeset viewer.