Changeset 1369


Ignore:
Timestamp:
08/28/06 14:46:23 (14 years ago)
Author:
curtis
Message:

Larger scale bar font; minimum width for log window and intensity frame.

File:
1 edited

Legend:

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

    r1351 r1369  
    406406    yMap.setRange(minWave, maxWave); 
    407407    AxisScale xScale = xMap.getAxisScale(); 
    408     Font font = Font.decode("serif"); 
     408    Font font = Font.decode("serif 24"); 
    409409    xScale.setFont(font); 
    410410    xScale.setTitle("Time (ns)"); 
     
    631631    int intensityWidth = intensityFrame.getSize().width; 
    632632    int intensityHeight = intensityFrame.getSize().height; 
     633    if (intensityWidth < 500) { 
     634      // enforce minimum reasonable width 
     635      intensityHeight = 500 * intensityHeight / intensityWidth; 
     636      intensityWidth = 400; 
     637    } 
    633638    int decayHeight = intensityHeight; 
    634639    int decayWidth = 100 * decayHeight / 100; // 100% of width 
Note: See TracChangeset for help on using the changeset viewer.