Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds node-based JavaFX workflow editors and graph canvases, keeping the graph model separate from the scene graph.
73% 77%+5 ptsof test cases passed
Passed 17 of 22 test cases with the skill, and 16 of 22 without it.
3 of 3 safety checks passed
Not used yet
Use this skill when the application lets users create or edit connected node graphs, workflows, or visual programming layouts.
import javafx.scene.control.Label;
import javafx.scene.layout.Pane;
import javafx.scene.shape.Line;
public class GraphCanvas extends Pane {
public GraphCanvas() {
var a = node("Input", 60, 60);
var b = node("Transform", 240, 160);
var link = new Line(120, 90, 240, 190);
getChildren().addAll(link, a, b);
}
private Label node(String title, double x, double y) {
var label = new Label(title);
label.relocate(x, y);
label.setStyle("-fx-padding: 12; -fx-background-color: #1c2128; -fx-text-fill: white;");
return label;
}
}
Node references becomes difficult to persist or test.Next to this one in the catalogue, plus more from the same author.