Changeset 1258 for trunk/src/org/apollo


Ignore:
Timestamp:
03/18/19 18:38:32 (5 years ago)
Author:
davidb
Message:

Changed how DisplayController width, height and size are retrieved. Now does this top-level, rather than going through the AxisAlignmentBox. In doing so, can now control for when the window size has you yet been correctly mapped to the screen, and fall back to pre-defined MINIMUM defaults

Location:
trunk/src/org/apollo/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/apollo/gui/ExpandedTrackManager.java

    r1102 r1258  
    170170                                if (!PopupManager.getInstance().isShowing(trackSelectionPopup)) {
    171171                                       
    172                                         trackSelectionPopup.setLocation((DisplayController.getFramePaintArea().getWidth() - trackSelectionPopup.getFullBounds().getWidth()) / 2, 0);
     172                                        trackSelectionPopup.setLocation((DisplayController.getFramePaintAreaWidth() - trackSelectionPopup.getFullBounds().getWidth()) / 2, 0);
    173173                                       
    174174                                        // Creep from above
     
    413413                        assert(Browser._theBrowser != null);
    414414               
    415                         int cpWidth = DisplayController.getFramePaintArea().getWidth();
    416                         int cpHeight = DisplayController.getFramePaintArea().getHeight();
     415                        int cpWidth = DisplayController.getFramePaintAreaWidth();
     416                        int cpHeight = DisplayController.getFramePaintAreaHeight();
    417417                        if (!DisplayController.isAudienceMode()) { // if message bay is showing - the remove the height
    418418                               
  • trunk/src/org/apollo/gui/FrameLayoutDaemon.java

    r1142 r1258  
    423423                                        // Ensure that left most pixel is at a reasonable position
    424424                                        if (!supressSpatialLayout && (initiationXPixel < 0 ||
    425                                                         (initiationXPixel > DisplayController.getFramePaintArea().getWidth() && DisplayController.getFramePaintArea().getWidth() > leftMargin))) {
     425                                                        (initiationXPixel > DisplayController.getFramePaintAreaWidth() && DisplayController.getFramePaintAreaWidth() > leftMargin))) {
    426426                                                initiationXPixel = leftMargin;
    427427                                        } else if (!supressSpatialLayout && initiationXPixel > LAYOUT_MAX_INITIATION_PIXEL) {
     
    432432                                                timelineWidth = rightMostPixel - initiationXPixel;
    433433                                        } else {
    434                                                 timelineWidth = DisplayController.getFramePaintArea().getWidth() - initiationXPixel - rightMargin;
     434                                                timelineWidth = DisplayController.getFramePaintAreaWidth() - initiationXPixel - rightMargin;
    435435                                        }
    436436                                       
     
    546546                                        if (width > 0) {
    547547                                               
    548                                                 if (width > (DisplayController.getFramePaintArea().getWidth() - (2 * FREE_SPACE_MARGINS))) {
    549                                                         width = DisplayController.getFramePaintArea().getWidth() - (2 * FREE_SPACE_MARGINS);
     548                                                if (width > (DisplayController.getFramePaintAreaWidth() - (2 * FREE_SPACE_MARGINS))) {
     549                                                        width = DisplayController.getFramePaintAreaWidth() - (2 * FREE_SPACE_MARGINS);
    550550                                                }
    551551
Note: See TracChangeset for help on using the changeset viewer.