Changeset 1039 for trunk/src/org/expeditee/gui/FrameGraphics.java
- Timestamp:
- 04/27/16 14:15:47 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/FrameGraphics.java
r997 r1039 24 24 import java.awt.Graphics; 25 25 import java.awt.Graphics2D; 26 import java.awt.GraphicsDevice; 26 27 import java.awt.GraphicsEnvironment; 27 28 import java.awt.Image; … … 69 70 70 71 public static final int MODE_XRAY = 2; 71 72 // Start in XRay mode so that errors aren't thrown when parsing the profile 73 // frame if it has images on it 72 73 public static final int MODE_AUDIENCE_FULLSCREEN = 4; 74 75 76 // The following used to be true in the past: 77 // Start in XRay mode so that errors aren't thrown when parsing the profile 78 // frame if it has images on it 79 // More recently, so Exploratory Search starts up correctly with images 80 // rendered (rather than their @i form) the following assignment was changed 81 // to MODE_AUDIENCE. No issue of parse errors has not been seen 74 82 private static int _Mode = MODE_AUDIENCE; 75 83 … … 87 95 ToggleXRayMode(); 88 96 } 89 90 if (_Mode == MODE_AUDIENCE) { 97 98 99 if (_Mode == MODE_AUDIENCE_FULLSCREEN) { 91 100 _Mode = MODE_NORMAL; 92 } else { 101 DisplayIO.leaveFullScreenMode(); 102 } 103 else if (_Mode == MODE_AUDIENCE) { 104 if (DisplayIO.fullScreenCapable()) { 105 // Don't need to worry about UpdateConnectedToAnnotations, as this 106 // will have already been taken care of going to the 'first stage' of 107 // audience mode (MODE_AUDIENCE) 108 _Mode = MODE_AUDIENCE_FULLSCREEN; 109 DisplayIO.enterFullScreenMode(); 110 } 111 else { 112 // return to normal mode 113 _Mode = MODE_NORMAL; 114 } 115 } 116 else { // must currently be in regular mode => move to audience mode 93 117 _Mode = MODE_AUDIENCE; 94 118 ItemUtils.UpdateConnectedToAnnotations(current.getItems()); … … 143 167 */ 144 168 public static boolean isAudienceMode() { 145 return _Mode == MODE_AUDIENCE;169 return (_Mode == MODE_AUDIENCE) || (_Mode == MODE_AUDIENCE_FULLSCREEN); 146 170 } 147 171
Note:
See TracChangeset
for help on using the changeset viewer.