final Slider rSlider = new Slider(50, 150, 86);
rSlider.disableProperty().bind(activateCB.selectedProperty().not());
radius.bind(rSlider.valueProperty());
Label rL = new Label();
rL.textProperty().bind(new StringBinding() {
{
bind(rSlider.valueProperty());
}
@Override
protected String computeValue() {
return df.format(rSlider.getValue()) + "px";
}
});
final Slider fmSlider = new Slider(3, 10, 5.5);
fmSlider.disableProperty().bind(activateCB.selectedProperty().not());
frameWidth.bind(fmSlider.valueProperty());
Label fmL = new Label();
fmL.textProperty().bind(new StringBinding() {
{
bind(fmSlider.valueProperty());
}
@Override
protected String computeValue() {
return df.format(fmSlider.getValue()) + "px";
}
});
final Slider sfSlider = new Slider(1, 8, 3);
sfSlider.disableProperty().bind(activateCB.selectedProperty().not());
scaleFactor.bind(sfSlider.valueProperty());
Label sfL = new Label();
sfL.textProperty().bind(new StringBinding() {
{
bind(sfSlider.valueProperty());
}
@Override
protected String computeValue() {
return df.format(sfSlider.getValue()) + "";
}
});
final CheckBox slVisibleCB = new CheckBox();
slVisibleCB.disableProperty().bind(activateCB.selectedProperty().not());
scopeLinesVisible.bind(slVisibleCB.selectedProperty());
final Slider sllider = new Slider(1, 4, 1.5);
sllider.disableProperty().bind(new BooleanBinding() {
{
bind(activateCB.selectedProperty(), slVisibleCB.selectedProperty());
}
@Override
protected boolean computeValue() {
if (!activateCB.isSelected() || !slVisibleCB.isSelected()) {
return true;
}
return false;
}
});
scopeLineWidth.bind(sllider.valueProperty());
Label slL = new Label();
slL.textProperty().bind(new StringBinding() {
{
bind(sllider.valueProperty());
}
@Override