I noticed that the bar gets bigger/higher near the max value and then falls back into place at max. Look for the middle/top part of the bar when value increases to 38, 39 in this example:
import eu.hansolo.medusa.Gauge;
import eu.hansolo.medusa.GaugeBuilder;
import javafx.animation.AnimationTimer;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
public class TestDashBoard extends Application {
private Gauge gauge5;
private long lastTimerCall;
private AnimationTimer timer;
private int value = 35;
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) {
gauge5 = GaugeBuilder.create()
.skinType(Gauge.SkinType.DASHBOARD)
.title("Dashboard")
.maxValue(40)
.minValue(0)
.barColor(Color.CRIMSON)
.build();
Scene s = new Scene(gauge5, 800, 800);
primaryStage.setScene(s);
primaryStage.show();
lastTimerCall = System.nanoTime();
timer = new AnimationTimer() {
@Override public void handle(long now) {
if (now > lastTimerCall + 1_000_000_000l) {
gauge5.setValue(value);
if (++value > 40)
value = 35;
lastTimerCall = now;
}
}
};
timer.start();
}
}
I think the issue might be that the start coordinate of the outer arch and end coordinate of the inner arch is a bit off. At lease it seems to go away if i make this change in DashboardSkin.java, Method private void setBar( final double VALUE ) line 314 - 319.
Hi
I noticed that the bar gets bigger/higher near the max value and then falls back into place at max. Look for the middle/top part of the bar when value increases to 38, 39 in this example:
I think the issue might be that the start coordinate of the outer arch and end coordinate of the inner arch is a bit off. At lease it seems to go away if i make this change in DashboardSkin.java, Method
private void setBar( final double VALUE )
line 314 - 319.It probably also need to be changed in 285-288, 188-190
Regards, Jan