package jcgp.gui.population; import javafx.scene.control.Label; import javafx.scene.paint.Paint; import javafx.scene.shape.Circle; import javafx.scene.shape.Line; import jcgp.backend.population.Output; import jcgp.gui.constants.Constants; public class GUIOutput extends GUIGene implements GUIMutable { private Output output; private Line line; public GUIOutput(final Output output, Line line) { super(); this.output = output; this.line = line; Circle socket = new Circle(-Constants.NODE_RADIUS, 0, Constants.SOCKET_RADIUS, Paint.valueOf("white")); socket.setId(String.valueOf(0)); socket.setStroke(Paint.valueOf("black")); Label connectionLabel = new Label("S"); connectionLabel.setStyle("-fx-background-color:rgb(255, 255, 255); -fx-border-color:rgba(0, 0, 0, 0.5);"); connectionLabel.relocate(socket.getCenterX() + 5, socket.getCenterY() - 10); connectionLabel.setVisible(false); getChildren().addAll(socket, connectionLabel); } void setOutput(Output output2) { } public Output getOutput() { return output; } public Line getLine() { return line; } @Override protected void setLinesVisible(boolean value) { line.setVisible(value); } }