Changeset 1342


Ignore:
Timestamp:
08/23/06 17:25:05 (14 years ago)
Author:
curtis
Message:

Default 3D window size to most of the screen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/apps/slim/SlimPlotter.java

    r1337 r1342  
    610610    int intensityHeight = decayHeight; 
    611611    int intensityWidth = 85 * intensityHeight / 100; // 85% of height 
     612    // enlarge 3D window to fill most of the screen 
     613    int availWidth = ss.width - intensityWidth - 30; 
     614    int availHeight = ss.height - 30; 
     615    int growWidth = availWidth - decayWidth; 
     616    int growHeight = availHeight - decayHeight; 
     617    int grow = growWidth < growHeight ? growWidth : growHeight; 
     618    if (grow > 0) { 
     619      decayWidth += grow; 
     620      decayHeight += grow; 
     621    } 
    612622    intensityFrame.setBounds(0, 0, intensityWidth, intensityHeight); 
    613623    intensityFrame.setVisible(true); 
Note: See TracChangeset for help on using the changeset viewer.