Changeset 7987


Ignore:
Timestamp:
04/18/12 18:04:55 (8 years ago)
Author:
aivar
Message:

SLIM Plugin: #707 The excitation delay field in the UI panel couldn't be edited properly; would always change to some off value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/slim-plugin/src/main/java/loci/slim/fitting/cursor/FittingCursor.java

    r7977 r7987  
    3535package loci.slim.fitting.cursor; 
    3636 
    37 import java.util.Collections; 
    3837import java.util.ConcurrentModificationException; 
    3938import java.util.HashSet; 
     
    8483     */ 
    8584    public void addListener(IFittingCursorListener listener) { 
    86         System.out.println("add listener " + listener); 
    8785        synchronized (_listeners) { 
    8886            if (!_listeners.contains(listener)) { 
     
    9896     */ 
    9997    public void removeListener(IFittingCursorListener listener) { 
    100         System.out.println("remove listener " + listener); 
    10198        synchronized (_listeners) { 
    10299            _listeners.remove(listener); 
     
    177174            // convert delay to start 
    178175            double promptStartValue = promptDelayValue + _transientStartValue; 
    179             if (promptStartValue <= _promptStopValue && 
    180                     promptStartValue >= 0.0) { 
    181                 double diff = _promptStartValue - promptStartValue; 
     176             
     177            // some very rudimentary error-checking 
     178            if (0.0 < promptStartValue && promptStartValue < _transientStopValue) { 
     179                double diff = promptStartValue - _promptStartValue; 
    182180                _promptStartValue += diff; 
    183181                _promptStopValue  += diff; 
     
    256254     */ 
    257255    public double getPromptStartValue() { 
    258         int bin = getPromptStartBin(); 
    259         return bin * _inc; 
     256        double returnValue = 0.0; 
     257        if (_hasPrompt) { 
     258            returnValue = _promptStartValue; 
     259        } 
     260        return returnValue; 
    260261    } 
    261262  
Note: See TracChangeset for help on using the changeset viewer.