@Override
public void start(final Stage primaryStage) throws Exception {
primaryStage.setTitle(Gauge.class.getSimpleName() + " TEST");
ToolBar root = new ToolBar();
root.setOrientation(Orientation.VERTICAL);
final Gauge gauge = new Gauge(IndicatorType.NEEDLE, 1d, 0.5d, "%04.2f", 0, 0d, 180d, 10, 4);
//gauge.setTickValue(1d);
//gauge.intensityIndicatorRegionsProperty.setValue(new Gauge.IntensityIndicatorRegions(10d, 80d, 10d));
//gauge.snapToTicksProperty.set(true);
//gauge.setCache(false);
final Gauge gaugeRegion1 = createRegionKnob(Color.GREEN,
gauge.intensityIndicatorRegionsProperty.getValue().getColor1SpanPercentage());
final Gauge gaugeRegion2 = createRegionKnob(Color.GOLD,
gauge.intensityIndicatorRegionsProperty.getValue().getColor2SpanPercentage());
final Gauge gaugeRegion3 = createRegionKnob(Color.RED,
gauge.intensityIndicatorRegionsProperty.getValue().getColor3SpanPercentage());
addIntensityChangeListener(gauge, gaugeRegion1, gaugeRegion2, gaugeRegion3, 0);
addIntensityChangeListener(gauge, gaugeRegion2, gaugeRegion1, gaugeRegion3, 1);
addIntensityChangeListener(gauge, gaugeRegion3, gaugeRegion1, gaugeRegion2, 2);
final HBox gaugeIntensitySliders = new HBox(5d);
gaugeIntensitySliders.getChildren().addAll(gaugeRegion1, gaugeRegion2, gaugeRegion3);
final VBox col1 = new VBox();
col1.getChildren().addAll(gauge, gaugeIntensitySliders);
final Gauge gauge2 = new Gauge(IndicatorType.NEEDLE, 0.5d, 1d, null, -2, 45d, 90d, 5, 0);
gauge2.setTickValue(0);
final Gauge gauge4 = new Gauge(IndicatorType.NEEDLE, 0.5d, 1d, "%03d", 2, 135d, 90d, 9, 4);
final VBox col2 = new VBox();
col2.getChildren().addAll(gauge2, gauge4);
final Gauge gauge5 = new Gauge(IndicatorType.KNOB, 1d, 1d, "%04.2f", 0, 0d, 360d, 20, 0);
gauge5.setTickValue(11.5d);
final VBox col3 = new VBox();
col3.getChildren().addAll(gauge5);
final HBox row1 = new HBox();
row1.getChildren().addAll(col1, col2, col3);
final HBox row2 = new HBox();
final Gauge gauge3 = new Gauge(IndicatorType.NEEDLE, 0.5d, 0.5d, "%04.2f", 0, 0d, 360d, 20, 1);
final Gauge gauge6 = new Gauge(IndicatorType.NEEDLE, 0.5d, 1d, "%04.2f", 0, 250d, 310d, 10, 0);
row2.getChildren().addAll(gauge3, gauge6);
root.getItems().addAll(row1, row2);
primaryStage.setScene(new Scene(root));
primaryStage.show();
}