Skip to content

Commit

Permalink
Add assumeSorted checkbox to ErrorDataSetStylingSample
Browse files Browse the repository at this point in the history
  • Loading branch information
wirew0rm authored and RalphSteinhagen committed Sep 30, 2020
1 parent a73479c commit 7586b19
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,12 @@ private ParameterTab getRendererTab(final XYChart chart, final ErrorDataSetRende
reductionDashSize.valueProperty().addListener((ch, old, value) -> chart.requestLayout());
pane.addToParameterPane(" Red. Min Distance: ", reductionDashSize);

pane.addToParameterPane(" ", null);
final CheckBox assumeSorted = new CheckBox();
assumeSorted.selectedProperty().bindBidirectional(errorRenderer.assumeSortedDataProperty());
assumeSorted.selectedProperty().addListener((ch, old, selected) -> chart.requestLayout());
pane.addToParameterPane("Assume sorted data: ", assumeSorted);

return pane;
}

Expand Down

0 comments on commit 7586b19

Please sign in to comment.