Changeset 186 for trunk/loci/visbio/view


Ignore:
Timestamp:
02/21/05 16:32:25 (15 years ago)
Author:
curtis
Message:

Fix a couple more window centering issues.

Location:
trunk/loci/visbio/view
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/visbio/view/ColorHandler.java

    r155 r186  
    169169    refreshPreviewData(); 
    170170    DisplayWindow window = getWindow(); 
    171     if (colorPane.showDialog(window) == ColorPane.APPROVE_OPTION) { 
    172       DisplayImpl d = window.getDisplay(); 
    173       VisUtil.setDisplayDisabled(d, true); 
    174       setColors(colorPane.getBrightness(), colorPane.getContrast(), 
    175         colorPane.getColorMode(), colorPane.getRed(), colorPane.getGreen(), 
    176         colorPane.getBlue(), false); 
    177       setOpacity(colorPane.getOpacityValue(), 
    178         colorPane.getOpacityModel(), false); 
    179       setRanges(colorPane.getLo(), colorPane.getHi(), colorPane.getFixed()); 
    180       setTables(colorPane.getTables()); 
    181       VisUtil.setDisplayDisabled(d, false); 
    182     } 
     171    int rval = colorPane.showDialog(window.getControls()); 
     172    if (rval != ColorPane.APPROVE_OPTION) return; 
     173    DisplayImpl d = window.getDisplay(); 
     174    VisUtil.setDisplayDisabled(d, true); 
     175    setColors(colorPane.getBrightness(), colorPane.getContrast(), 
     176      colorPane.getColorMode(), colorPane.getRed(), colorPane.getGreen(), 
     177      colorPane.getBlue(), false); 
     178    setOpacity(colorPane.getOpacityValue(), 
     179      colorPane.getOpacityModel(), false); 
     180    setRanges(colorPane.getLo(), colorPane.getHi(), colorPane.getFixed()); 
     181    setTables(colorPane.getTables()); 
     182    VisUtil.setDisplayDisabled(d, false); 
    183183  } 
    184184 
  • trunk/loci/visbio/view/DisplayWindow.java

    r173 r186  
    149149  public DisplayImpl getDisplay() { return display; } 
    150150 
     151  /** Gets associated breakaway control panel. */ 
     152  public BreakawayPanel getControls() { return controls; } 
     153 
    151154  /** Gets the view handler. */ 
    152155  public ViewHandler getViewHandler() { return viewHandler; } 
  • trunk/loci/visbio/view/StackPanel.java

    r173 r186  
    134134      DataTransform trans = (DataTransform) transformList.getSelectedValue(); 
    135135      sliceToggler.setTransform(trans); 
    136       int rval = sliceToggler.showDialog(window); 
     136      int rval = sliceToggler.showDialog(window.getControls()); 
    137137      if (rval != SliceToggler.APPROVE_OPTION) return; 
    138138      updateControls(); 
Note: See TracChangeset for help on using the changeset viewer.