}
});
c.setOnMouseExited( (event) -> {
lastFocus.set( (Circle)event.getSource() );
});
StackPane lStackPane = new StackPane();
lStackPane.setId("" + i);
lStackPane.getChildren().add(c);
lStackPane.getChildren().add(t);
lCircularPane.add(lStackPane);
}
StackPane lStackPane = new StackPane();
Circle c = new Circle(1, Color.WHITE);
c.radiusProperty().bind(lCircularPane.widthProperty().divide(2.0));
lStackPane.getChildren().add(c);
lStackPane.getChildren().add(lCircularPane);
Label l = new Label("H");
l.getStyleClass().add("center");
lStackPane.getChildren().add(l);
lHBox.add(lStackPane);
}
{
CircularPane lCircularPane = new CircularPane();
lCircularPane.setStartAngle(-360.0 / 12 / 2);
lCircularPane.setDiameter(150.0);
//lCircularPane.setStyle("-fx-border-color:black;");
lCircularPane.setChildrenAreCircular(true);
//lCircularPane.setShowDebug(lShowDebug);
lCircularPane.setAnimationInterpolation(CircularPane::animateOverTheArc);
final List<Label> labels = new ArrayList<>();
final List<Circle> circles = new ArrayList<>();
for (int i = 0; i < 12; i++) {
javafx.scene.shape.Circle c = new javafx.scene.shape.Circle(10, Color.TRANSPARENT);
circles.add(c);
javafx.scene.control.Label t = new javafx.scene.control.Label("" + (i * 5));
t.getStyleClass().add("time");
labels.add(t);
StackPane lStackPane = new StackPane();
lStackPane.getChildren().add(c);
lStackPane.getChildren().add(t);
lCircularPane.add(lStackPane);
}
StackPane lStackPane = new StackPane();
Circle c = new Circle(1, Color.WHITE);
c.radiusProperty().bind(lCircularPane.widthProperty().divide(2.0));
lStackPane.getChildren().add(c);
lStackPane.getChildren().add(lCircularPane);
Label l = new Label("M");
l.getStyleClass().add("center");
lStackPane.getChildren().add(l);
lHBox.add(lStackPane);
}
{
CircularPane lCircularPane = new CircularPane();
lCircularPane.setDiameter(90.0);
//lCircularPane.setStyle("-fx-border-color:black;");
//lCircularPane.setChildrenAreCircular(true);
lCircularPane.setShowDebug(lShowDebug);
lCircularPane.setAnimationInterpolation(CircularPane::animateOverTheArc);
final List<Label> labels = new ArrayList<>();
final List<Circle> circles = new ArrayList<>();
final AtomicReference<Circle> lastFocus = new AtomicReference<>();
final AtomicBoolean isPM = new AtomicBoolean(false);
for (int i = 0; i < 12; i++) {
javafx.scene.shape.Circle c = new javafx.scene.shape.Circle(10, Color.GRAY);
circles.add(c);
javafx.scene.control.Label t = new javafx.scene.control.Label("" + (i * 5));
t.getStyleClass().add("time");
labels.add(t);
StackPane lStackPane = new StackPane();
lStackPane.getChildren().add(c);
lStackPane.getChildren().add(t);
lCircularPane.add(lStackPane);
}
StackPane lStackPane = new StackPane();
lStackPane.getChildren().add(lCircularPane);
Label l = new Label("S");
l.getStyleClass().add("center");
lStackPane.getChildren().add(l);
lHBox.add(lStackPane);
}
{
CircularPane lCircularPane = new CircularPane().withId("XX");