Changeset 1438


Ignore:
Timestamp:
09/07/06 12:55:30 (14 years ago)
Author:
curtis
Message:

Use LookUtils.IS_OS_* instead of System.getProperty("os.name") when appropriate;
don't set nice transparency on Mac OS X, since it is unimplemented.

Location:
trunk/loci/visbio
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/visbio/WindowInfo.java

    r1264 r1438  
    2424package loci.visbio; 
    2525 
     26import com.jgoodies.plaf.LookUtils; 
    2627import java.awt.*; 
    2728import java.awt.event.WindowEvent; 
     
    7576      // HACK - work around a layout issue where panel is slightly too short 
    7677      // this hack also appears in loci.visbio.view.DisplayWindow.repack() 
    77       if ("Linux".equals(System.getProperty("os.name"))) { 
     78      if (LookUtils.IS_OS_LINUX) { 
    7879        Dimension size = window.getSize(); 
    7980        size.height += 10; 
  • trunk/loci/visbio/util/SwingUtil.java

    r1390 r1438  
    245245  } 
    246246 
    247  
    248247  // -- Helper methods -- 
    249248 
  • trunk/loci/visbio/view/DisplayManager.java

    r1264 r1438  
    2424package loci.visbio.view; 
    2525 
     26import com.jgoodies.plaf.LookUtils; 
    2627import java.awt.Component; 
    2728import java.util.Vector; 
     
    180181        DisplayWindow[] dw = getDisplays(); 
    181182        for (int i=0; i<dw.length; i++) { 
    182           dw[i].setTransparencyMode(nice); 
     183          if (!LookUtils.IS_OS_MAC) dw[i].setTransparencyMode(nice); 
    183184          dw[i].set3DTexturing(texture3d); 
    184185        } 
  • trunk/loci/visbio/view/DisplayWindow.java

    r1432 r1438  
    2424package loci.visbio.view; 
    2525 
     26import com.jgoodies.plaf.LookUtils; 
    2627import java.awt.*; 
    2728import java.awt.event.*; 
     
    140141      // HACK - work around a layout issue where panel is slightly too short 
    141142      // this hack also appears in loci.visbio.WindowInfo.showWindow() 
    142       if ("Linux".equals(System.getProperty("os.name"))) size.height += 10; 
     143      if (LookUtils.IS_OS_LINUX) size.height += 10; 
    143144    } 
    144145    else if (edge == BorderLayout.NORTH || edge == BorderLayout.SOUTH) { 
Note: See TracChangeset for help on using the changeset viewer.