Skip to content

Commit

Permalink
Merge branch 'TimelineUpdateFileListRemovalOnClearFilter'
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed Oct 17, 2023
2 parents ddcf994 + 5c1ea1b commit 06a6795
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -828,13 +828,19 @@ public void removeFilter(Date[] removedDates) {
}

public void removeAllFilters() {
removeAllFilters(true);
}

public void removeAllFilters(boolean updateResult) {
for (Date[] removedDates : definedFilters) {
HighlightWorker sw = new HighlightWorker(ipedChartsPanel.getDomainAxis(), ipedChartsPanel.resultsProvider, removedDates[0], removedDates[1], false, false);
}
definedFilters.clear();
excludedEvents.clear();
ipedChartsPanel.setApplyFilters(false);
filterSelection();
if (updateResult) {
filterSelection();
}
IpedCombinedDomainXYPlot rootPlot = ((IpedCombinedDomainXYPlot) getChart().getPlot());
List<XYPlot> xyPlots = rootPlot.getSubplots();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ public void setMetadataToBreakChart(String metadataToBreakChart) {

@Override
public void clearFilter() {
chartPanel.removeAllFilters();
chartPanel.removeAllFilters(false);
}

@Override
Expand Down

0 comments on commit 06a6795

Please sign in to comment.