From 7586b19af476358296d873583213c66f8edd2a48 Mon Sep 17 00:00:00 2001 From: Alexander Krimm Date: Wed, 30 Sep 2020 19:15:35 +0200 Subject: [PATCH] Add assumeSorted checkbox to ErrorDataSetStylingSample --- .../chart/samples/ErrorDataSetRendererStylingSample.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chartfx-samples/src/main/java/de/gsi/chart/samples/ErrorDataSetRendererStylingSample.java b/chartfx-samples/src/main/java/de/gsi/chart/samples/ErrorDataSetRendererStylingSample.java index 7619691a0..7ca02dfc0 100644 --- a/chartfx-samples/src/main/java/de/gsi/chart/samples/ErrorDataSetRendererStylingSample.java +++ b/chartfx-samples/src/main/java/de/gsi/chart/samples/ErrorDataSetRendererStylingSample.java @@ -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; }