Ignore:
Timestamp:
09/07/17 16:26:46 (7 years ago)
Author:
pharms
Message:
  • changes for first VR oriented usability evaluation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-ui-swt/src/main/java/de/ugoe/cs/autoquest/ui/swt/TaskTreePlotUtils.java

    r2128 r2168  
    168168            plot.addDomainMarker(marker); 
    169169             
    170             double xLow = 0; 
    171             double yLow = 0; 
    172             double xHigh = 100; 
    173             double yHigh = 100; 
    174             double maxY = 0; 
    175             for (int i = 0; i < dataset.getItemCount(0); i++) { 
    176                 double xValue = dataset.getXValue(0, i); 
    177                 double yValue = dataset.getYValue(0, i); 
    178                  
    179                 if ((xLow < xValue) && (xValue < mpMarker)) { 
    180                     xLow = xValue; 
    181                     yLow = yValue; 
    182                 } 
    183                 else if ((xHigh > xValue) && (xValue > mpMarker)) { 
    184                     xHigh = xValue; 
    185                     yHigh = yValue; 
    186                 } 
    187                  
    188                 maxY = Math.max(maxY, yValue); 
    189             } 
    190              
    191             marker = new ValueMarker((yHigh + yLow) / 2); 
    192             marker.setLabel(new DecimalFormat("#0.0").format((yHigh + yLow) / 2)); 
     170            double yMP = dataset.getYValue(0, mostProminent.size() - 1); 
     171            double maxY = dataset.getYValue(0, dataset.getItemCount(0) - 1); 
     172             
     173            marker = new ValueMarker(yMP); 
     174            marker.setLabel(new DecimalFormat("#0.0").format(yMP)); 
    193175            marker.setLabelOffset(new RectangleInsets(5, 15, 0, 10)); 
    194176            plot.addRangeMarker(marker); 
Note: See TracChangeset for help on using the changeset viewer.