use of eu.hansolo.enzo.common.Section in project Board-Instrumentation-Framework by intel.
the class DemoMulti method init.
@Override
public void init() {
rnd = new Random();
lastTimerCall = 0l;
timer = new AnimationTimer() {
@Override
public void handle(long now) {
if (now > lastTimerCall + 100_000_000l) {
for (SimpleGauge gauge : gauges) {
gauge.setValue(rnd.nextDouble() * 100.0);
}
lastTimerCall = now;
}
}
};
gauges = new SimpleGauge[100];
for (int i = 0; i < 100; i++) {
SimpleGauge gauge = SimpleGaugeBuilder.create().prefSize(50, 50).animationDuration(80).animated(false).sections(new Section(0, 100)).styleClass(SimpleGauge.STYLE_CLASS_BLUE_TO_RED_6).build();
gauges[i] = gauge;
}
}
Aggregations