Ignore:
Timestamp:
04/27/16 14:15:47 (8 years ago)
Author:
davidb
Message:

Main Addition: full-screen audience mode. Also some whitespace and comment tidy-up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameGraphics.java

    r997 r1039  
    2424import java.awt.Graphics;
    2525import java.awt.Graphics2D;
     26import java.awt.GraphicsDevice;
    2627import java.awt.GraphicsEnvironment;
    2728import java.awt.Image;
     
    6970
    7071        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
    7482        private static int _Mode = MODE_AUDIENCE;
    7583
     
    8795                        ToggleXRayMode();
    8896                }
    89 
    90                 if (_Mode == MODE_AUDIENCE) {
     97       
     98
     99                if (_Mode == MODE_AUDIENCE_FULLSCREEN) {
    91100                        _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
    93117                        _Mode = MODE_AUDIENCE;
    94118                        ItemUtils.UpdateConnectedToAnnotations(current.getItems());
     
    143167         */
    144168        public static boolean isAudienceMode() {
    145                 return _Mode == MODE_AUDIENCE;
     169                return (_Mode == MODE_AUDIENCE) || (_Mode == MODE_AUDIENCE_FULLSCREEN);
    146170        }
    147171
Note: See TracChangeset for help on using the changeset viewer.