private void initSliders() {
for (final UpdateRate elem : UpdateRate.values()) {
this.udpateRateCombo.getItems().add(elem);
}
this.udpateRateCombo.getSelectionModel().selectedItemProperty().addListener(
(observable, oldValue, newValue) -> this.setUpdateRate(newValue));
this.sliderRadius.valueProperty().addListener(
(observable, oldValue, newValue) -> this.setDtwRadius(newValue.doubleValue() / 10));
this.sliderMinThreshold.valueProperty().addListener(
(observable, oldValue, newValue) -> this.setMinDtwThreashold(newValue.intValue()));
this.sliderMaxThreshold.valueProperty().addListener(
(observable, oldValue, newValue) -> this.setMaxDtwThreashold(newValue.intValue()));
this.sliderTimeSeparation.valueProperty().addListener(
(observable, oldValue, newValue) -> this.setMinTimeSeparation(newValue.intValue()));
this.sliderMatchNumber.valueProperty().addListener(
(observable, oldValue, newValue) -> this.setMatchNumber(newValue.intValue()));
this.elevationSlider = new JFXSlider(0, 30, 10);
this.elevationSlider.setMajorTickUnit(5);
this.elevationSlider.setSnapToTicks(true);
this.elevationSlider.setMinorTickCount(0);
this.elevationSlider.setMinHeight(50);
this.elevationSlider.valueProperty().addListener((oservable, oldValue, newValue) -> {
new Thread(() -> {
this.setSensorElevation(newValue.intValue());
}).start();
});
}