コード例 #1
0
 private void highlightAnomaly(ArrayList<String> anomalies) {
   consoleLogger.debug("Selected anomalies: " + anomalies.toString());
   timeseriesPlot.clearDomainMarkers();
   for (String anomaly : anomalies) {
     DiscordRecord dr = this.chartData.getAnomalies().get(Integer.valueOf(anomaly));
     consoleLogger.debug(dr.toString());
     addAnomalyMarker(timeseriesPlot, dr.getPosition(), dr.getPosition() + dr.getLength());
   }
 }
 private void highlightAnomaly(String newlySelectedRaw) {
   // find the anomaly
   timeseriesPlot.clearDomainMarkers();
   DiscordRecord dr = this.chartData.getAnomalies().get(Integer.valueOf(newlySelectedRaw));
   addAnomalyMarker(timeseriesPlot, dr.getPosition(), dr.getPosition() + dr.getLength());
 }