Changeset 2963


Ignore:
Timestamp:
07/10/07 17:15:06 (13 years ago)
Author:
curtis
Message:

Fix compile errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/gui/CacheComponent.java

    r2953 r2963  
    279279    try { 
    280280      if (s.startsWith("Crosshair")) { 
    281         strategy = new CrosshairStrategy(forwardFirst, lengths,  
    282           getForward(), getBackward()); 
     281        strategy = new CrosshairStrategy(lengths); 
    283282      } 
    284283      else if (s.startsWith("Rectangle")) { 
    285         strategy = new RectangleStrategy(forwardFirst, lengths,  
    286           getForward(), getBackward()); 
    287       } 
     284        strategy = new RectangleStrategy(lengths); 
     285      } 
     286      strategy.setForwardFirst(forwardFirst); 
     287      int[] fwd = getForward(); 
     288      for (int i=0; i<fwd.length; i++) strategy.setForward(fwd[i], i); 
     289      int[] bwd = getBackward(); 
     290      for (int i=0; i<bwd.length; i++) strategy.setBackward(bwd[i], i); 
    288291      cache.setStrategy(strategy);  
    289292    } 
Note: See TracChangeset for help on using the changeset viewer.