Changeset 6332


Ignore:
Timestamp:
05/18/10 12:00:33 (10 years ago)
Author:
melissa
Message:

Fixed ROI transformation population, see  omero:2373.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/bio-formats/src/loci/formats/in/FV1000Reader.java

    r6315 r6332  
    101101  private static final int COLOR_BAR = 13; 
    102102  private static final int SCALE = 15; 
     103 
     104  private static final String ROTATION = "rotate(%d %f %f)"; 
    103105 
    104106  // -- Fields -- 
     
    10711073                double centerY = realY + (height / 2); 
    10721074 
    1073                 store.setRectangleTransform(String.format("rotate(%d %d %d)", 
     1075                store.setRectangleTransform(String.format(ROTATION, 
    10741076                  angle, centerX, centerY), nextROI, shape); 
    10751077 
     
    10921094            int centerY = y + (height / 2); 
    10931095 
    1094             store.setLineTransform(String.format("rotate(%d %d %d)", 
     1096            store.setLineTransform(String.format(ROTATION, 
    10951097              angle, centerX, centerY), nextROI, shape); 
    10961098          } 
     
    11071109            store.setEllipseFontSize(fontSize, nextROI, shape); 
    11081110            store.setEllipseStrokeWidth(new Double(lineWidth), nextROI, shape); 
    1109             store.setEllipseTransform(String.format("rotate(%d %d %d)", 
     1111            store.setEllipseTransform(String.format(ROTATION, 
    11101112              angle, x + rx, y + ry), nextROI, shape); 
    11111113          } 
  • trunk/components/bio-formats/src/loci/formats/in/FV1000Reader.java

    r6315 r6332  
    101101  private static final int COLOR_BAR = 13; 
    102102  private static final int SCALE = 15; 
     103 
     104  private static final String ROTATION = "rotate(%d %f %f)"; 
    103105 
    104106  // -- Fields -- 
     
    10711073                double centerY = realY + (height / 2); 
    10721074 
    1073                 store.setRectangleTransform(String.format("rotate(%d %d %d)", 
     1075                store.setRectangleTransform(String.format(ROTATION, 
    10741076                  angle, centerX, centerY), nextROI, shape); 
    10751077 
     
    10921094            int centerY = y + (height / 2); 
    10931095 
    1094             store.setLineTransform(String.format("rotate(%d %d %d)", 
     1096            store.setLineTransform(String.format(ROTATION, 
    10951097              angle, centerX, centerY), nextROI, shape); 
    10961098          } 
     
    11071109            store.setEllipseFontSize(fontSize, nextROI, shape); 
    11081110            store.setEllipseStrokeWidth(new Double(lineWidth), nextROI, shape); 
    1109             store.setEllipseTransform(String.format("rotate(%d %d %d)", 
     1111            store.setEllipseTransform(String.format(ROTATION, 
    11101112              angle, x + rx, y + ry), nextROI, shape); 
    11111113          } 
Note: See TracChangeset for help on using the changeset viewer.