Changeset 2287


Ignore:
Timestamp:
02/15/07 20:06:33 (13 years ago)
Author:
chris
Message:

Notebook:
support for multiple pixels in weird order should be in place
I haven't been able to test so far since I forgot the filepath
of the good leica test file but we can do this tomorrow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/ome/notebook/MetadataPane.java

    r2286 r2287  
    14131413    /**The JLabels for the title and the optional image.*/ 
    14141414    protected JLabel tableName, imageLabel; 
     1415     
     1416    protected BufferedImage tableThumb; 
     1417     
     1418    protected BufferedImage tableImage; 
    14151419 
    14161420    /** 
     
    15871591 
    15881592      imageLabel = null; 
    1589       if (name.endsWith("Pixels") || name.endsWith("Pixels (1)")) { 
    1590         if (thumb != null) { 
    1591           imageLabel = new JLabel(new ImageIcon(thumb)); 
    1592           imageLabel.setToolTipText("The first image of these pixels." + 
     1593      if (name.endsWith("Pixels")) { 
     1594        if(pixelsIDProblem || on == null) {         
     1595          if (thumb != null) { 
     1596            tableThumb = thumb; 
     1597            tableImage = img; 
     1598            imageLabel = new JLabel(new ImageIcon(tableThumb)); 
     1599            imageLabel.setToolTipText("The middle image of these pixels." + 
     1600              " Click for full sized image."); 
     1601            imageLabel.addMouseListener(this); 
     1602          } 
     1603        } 
     1604        else { 
     1605          String thisID = on.getAttribute("ID"); 
     1606          int colonIndex = thisID.indexOf(":"); 
     1607          String pixNumString = thisID.substring(colonIndex + 1); 
     1608          int pixNum = Integer.parseInt(pixNumString); 
     1609          int indexNum = pixNum - minPixNum; 
     1610          tableThumb = thumbs[indexNum]; 
     1611          tableImage = images[indexNum]; 
     1612          imageLabel = new JLabel(new ImageIcon(tableThumb)); 
     1613          imageLabel.setToolTipText("The middle image of these pixels." + 
    15931614            " Click for full sized image."); 
    15941615          imageLabel.addMouseListener(this); 
     
    18591880        JOptionPane.showMessageDialog(getTopLevelAncestor(), null, 
    18601881          "(Full Sized) " + name, JOptionPane.PLAIN_MESSAGE, 
    1861           new ImageIcon(img)); 
     1882          new ImageIcon(tableImage)); 
    18621883      } 
    18631884    } 
Note: See TracChangeset for help on using the changeset viewer.