Changeset 231 for trunk/loci/visbio/view


Ignore:
Timestamp:
03/16/05 12:03:42 (15 years ago)
Author:
curtis
Message:

Do not delay burn-in if full-resolution data is present the cache.

File:
1 edited

Legend:

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

    r228 r231  
    382382    new Thread("VisBio-ComputeDataThread-" + append) { 
    383383      public void run() { 
    384         if (immediate) computeData(false); 
     384        int[] pos = handler.getPos(trans); 
     385        if (handler.getCache().hasData(trans, pos, null)) { 
     386          // cache hit; burn in immediately 
     387          burnTime = System.currentTimeMillis(); 
     388          burnNow = true; 
     389        } 
     390        else if (immediate) computeData(false); 
    385391        else { 
    386392          computeData(true); 
Note: See TracChangeset for help on using the changeset viewer.