Ignore:
Timestamp:
02/03/12 20:22:06 (8 years ago)
Author:
aivar
Message:

SLIMPlugin: Tidied up a bit. Fixed minor bugs in decay graph, histogram, and user interface panel.

Location:
trunk/projects/slim-plugin/src/main/java/imagej/slim
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/slim-plugin/src/main/java/imagej/slim/histogram/HistogramPanel.java

    r7879 r7886  
    216216     */ 
    217217    public void setCursors(Integer minCursor, Integer maxCursor) { 
     218        System.out.println("setCursors(" + minCursor + "," + maxCursor); 
    218219        synchronized (_synchObject) { 
    219220            if (null == minCursor) { 
  • trunk/projects/slim-plugin/src/main/java/imagej/slim/histogram/HistogramTool.java

    r7879 r7886  
    155155         
    156156        _histogramPanel.setBins(histogramData.binValues(WIDTH)); 
    157         //_histogramPanel.setCursors(0.0, 0.0); set cursors if not autoranging 
    158  
     157        System.out.println("minMaxLUT is " + minMaxLUT[0] + " " + minMaxLUT[1]); 
     158        System.out.println("so cursosr are " + cursorPixelFromValue(false, minMaxLUT[0]) + " " + cursorPixelFromValue(false, minMaxLUT[1])); 
     159        _histogramPanel.setCursors(cursorPixelFromValue(false, minMaxLUT[0]), cursorPixelFromValue(false, minMaxLUT[1])); //TODO ARG true, maxLUT)); in this case adding 1 to max is too much! 
     160  
    159161        _uiPanel.setAutoRange(histogramData.getAutoRange()); 
    160162        _uiPanel.setCombineChannels(histogramData.getCombineChannels()); 
     
    463465                    // note that if you stretch the bounds on one side you need 
    464466                    // to adjust the position of the other side. 
    465                     _histogramPanel.setCursors(cursorPixelFromValue(false, minLUT), cursorPixelFromValue(true, maxLUT)); 
     467                    _histogramPanel.setCursors(cursorPixelFromValue(false, minLUT), cursorPixelFromValue(false, maxLUT)); //TODO ARG true, maxLUT)); in this case adding 1 to max is too much! 
    466468                } 
    467469            } 
Note: See TracChangeset for help on using the changeset viewer.