Changeset 1906


Ignore:
Timestamp:
12/06/06 17:26:02 (13 years ago)
Author:
chris
Message:

Browser:
1) removed light colors cyan,yellow,pink from block color scheme.
2) used Color.darker() method to make it work (somewhat) for an
arbitrary amount of blocks the problem here is that if there are
just boatloads of blocks the later ones will all be black since
they've been made crazy dark.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/browser/OptionsWindow.java

    r1899 r1906  
    412412        return Color.blue; 
    413413      case 1: 
    414         return Color.cyan; 
     414        return Color.green; 
    415415      case 2: 
    416         return Color.green; 
     416        return Color.red; 
    417417      case 3: 
    418         return Color.yellow; 
     418        return Color.magenta; 
    419419      case 4: 
    420         return Color.red; 
    421       case 5: 
    422420        return Color.orange; 
    423       case 6: 
    424         return Color.magenta; 
    425       case 7: 
    426         return Color.pink; 
    427421      default: 
    428         Exception exc = new Exception(); 
    429         exc.printStackTrace(); 
    430         System.out.println("Too many dimensional blocks in filename" 
    431           + "for handling FileStitcher in the OptionsWindow in this" 
    432           + "4d Browser."); 
    433         return getColor(i%8);  
     422        int next = i; 
     423        Color tempColor = getColor(i%5); 
     424        while (next > 4) { 
     425          next -= 5; 
     426          tempColor = tempColor.darker(); 
     427        } 
     428        return tempColor;  
    434429    } 
    435430  } 
Note: See TracChangeset for help on using the changeset viewer.