Ignore:
Timestamp:
09/07/06 09:14:43 (14 years ago)
Author:
curtis
Message:

Turn on indentation check, fix a few style issues in VisBio.

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

Legend:

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

    r1264 r1432  
    369369      // lay out components 
    370370      pane.add(display.getComponent(), BorderLayout.CENTER); 
    371       controls.setContentPane(FormsUtil.makeColumn(new Object[] { 
    372         viewHandler.getPanel(), FormsUtil.makeRow(new Object[] { 
    373         captureHandler.getPanel()}), "Data", transformHandler.getPanel(), 
    374         sliders}, null, true)); 
     371      Object[] rows = { 
     372        viewHandler.getPanel(), 
     373        FormsUtil.makeRow(new Object[] {captureHandler.getPanel()}), 
     374        "Data", 
     375        transformHandler.getPanel(), 
     376        sliders 
     377      }; 
     378      controls.setContentPane(FormsUtil.makeColumn(rows, null, true)); 
    375379      pack(); 
    376380      repack(); 
  • trunk/loci/visbio/view/TransformHandler.java

    r1264 r1432  
    289289    DataTransform[] dt = bsw.getTransforms(); 
    290290    int[] ndx = bsw.getIndices(); 
    291     for (int t=0; t<dt.length; t++) if (trans == dt[t]) return ndx[t]; 
     291    for (int t=0; t<dt.length; t++) { 
     292      if (trans == dt[t]) return ndx[t]; 
     293    } 
    292294    return -1; 
    293295  } 
  • trunk/loci/visbio/view/TransformPanel.java

    r1264 r1432  
    445445    builder.add(FormsUtil.makeRow(new Object[] {"Arrow keys:", 
    446446      "Le&ft/right", leftRightBox, "Up/do&wn", upDownBox}), cc.xy(1, 1)); 
    447     builder.add(FormsUtil.makeRow(new Object[] 
    448       {animate, "&FPS", fps, animBox}), cc.xy(1, 3)); 
     447    builder.add(FormsUtil.makeRow(new Object[] {animate, 
     448      "&FPS", fps, animBox}), cc.xy(1, 3)); 
    449449    return builder.getPanel(); 
    450450  } 
  • trunk/loci/visbio/view/ViewHandler.java

    r1264 r1432  
    392392    // clear old aspect ratio from projection matrix 
    393393    double[] undoOldAspect = { 
    394       1 / xasp,        0,        0, 0, 
    395              0, 1 / yasp,        0, 0, 
    396              0,        0, 1 / zasp, 0, 
    397              0,        0,        0, 1 
     394      1 / xasp, 0, 0, 0, 
     395      0, 1 / yasp, 0, 0, 
     396      0, 0, 1 / zasp, 0, 
     397      0, 0, 0, 1 
    398398    }; 
    399399    double[] newMatrix = display.multiply_matrix(oldMatrix, undoOldAspect); 
     
    422422    double rotate = window.is3D() ? DEFAULT_ROTATION : 0; 
    423423    double[] newMatrix = display.make_matrix(rotate, 0, 0, scale, 0, 0, 0); 
    424     double[] aspect = new double[] 
    425       {xasp, 0, 0, 0, 0, yasp, 0, 0, 0, 0, zasp, 0, 0, 0, 0, 1}; 
     424    double[] aspect = new double[] {xasp, 
     425      0, 0, 0, 0, yasp, 0, 0, 0, 0, zasp, 0, 0, 0, 0, 1}; 
    426426    return display.multiply_matrix(newMatrix, aspect); 
    427427  } 
Note: See TracChangeset for help on using the changeset viewer.