|
|
|
|
@ -257,14 +257,10 @@ public class RaceViewController extends Controller {
|
|
|
|
|
.knobType(Gauge.KnobType.METAL)
|
|
|
|
|
.knobColor(Color.LIGHTGRAY)
|
|
|
|
|
.interactive(false)
|
|
|
|
|
.onButtonPressed(buttonEvent -> System.out.println("Knob pressed"))
|
|
|
|
|
.onButtonReleased(buttonEvent -> System.out.println("Knob released"))
|
|
|
|
|
.thresholdVisible(true)
|
|
|
|
|
.threshold(50)
|
|
|
|
|
.thresholdColor(Color.RED)
|
|
|
|
|
.checkThreshold(true)
|
|
|
|
|
.onThresholdExceeded(thresholdEvent -> System.out.println("Threshold exceeded"))
|
|
|
|
|
.onThresholdUnderrun(thresholdEvent -> System.out.println("Threshold underrun"))
|
|
|
|
|
.gradientBarEnabled(true)
|
|
|
|
|
.gradientBarStops(new Stop(0.0, Color.BLUE),
|
|
|
|
|
new Stop(0.25, Color.CYAN),
|
|
|
|
|
|