Ignore:
Timestamp:
04/16/19 09:52:23 (5 years ago)
Author:
bln4
Message:

Feedback is now provided during account creation. In order to achieve this a forced refresh for the message bay area has been added.
Upon login the existing preview area for messages is now cleared.

File:
1 edited

Legend:

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

    r1258 r1314  
    13751375        }
    13761376       
    1377         /*
    1378          *
    1379          * Thread-safe rendering.
    1380          *
    1381          */
    1382 
     1377        public static void refreshBayArea() {
     1378                // Always get the clip as it clears at the same time
     1379                Clip clip = _damagedAreas.getClip();
     1380                GraphicsManager g = EcosystemManager.getGraphicsManager();
     1381                pushBayAreaUpdate(true, clip, g);
     1382        }
     1383       
    13831384        /**
    13841385         * Redraws the entire window. Shouldn't be called directly, instead use
     
    14411442                }
    14421443
     1444                pushBayAreaUpdate(useInvalidation, clip, g);
     1445               
     1446                // Draw any separator lines
     1447                g.drawLine(getMessageBaySeparatorLine(), SEPARATOR_COLOUR, SEPARATOR_STROKE);
     1448                g.drawLine(getTwinFramesSeparatorLine(), SEPARATOR_COLOUR, SEPARATOR_STROKE);
     1449               
     1450                // Paint any popups
     1451                if (PopupManager.getInstance() != null) {
     1452                        PopupManager.getInstance().paint();
     1453                }
     1454               
     1455                g.popDrawingSurface();
     1456                g.drawImage(_refreshBuffer, Point.ORIGIN);
     1457                return true;
     1458        }
     1459
     1460        private static void pushBayAreaUpdate(boolean useInvalidation, Clip clip, GraphicsManager g) {
    14431461                if (!isAudienceMode()) {
    14441462                        if (!isMailMode()) {
     
    14501468                        }
    14511469                }
    1452                
    1453                 // Draw any separator lines
    1454                 g.drawLine(getMessageBaySeparatorLine(), SEPARATOR_COLOUR, SEPARATOR_STROKE);
    1455                 g.drawLine(getTwinFramesSeparatorLine(), SEPARATOR_COLOUR, SEPARATOR_STROKE);
    1456                
    1457                 // Paint any popups
    1458                 if (PopupManager.getInstance() != null) {
    1459                         PopupManager.getInstance().paint();
    1460                 }
    1461                
    1462                 g.popDrawingSurface();
    1463                 g.drawImage(_refreshBuffer, Point.ORIGIN);
    1464                 return true;
    1465         }
    1466 
     1470        }
     1471       
    14671472        private static void paintMessageBay(boolean useInvalidation, Clip clip, GraphicsManager g) {
    14681473                Clip messageBayClip = null;
Note: See TracChangeset for help on using the changeset viewer.