@@ -0,0 +1,760 @@
+package nl.tudelft.dnainator.ui.layouts;%0A%0Aimport javafx.geometry.Point2D;%0A%0A/**%0A * A topologically sorted layout.%0A */%0Apublic final class TopoLayout %7B%0A%09private static final double WIDTH = 60;%0A%09private static final double HEIGHT = 60;%0A%0A%09// Keep Checkstyle satisfied.%0A%09private TopoLayout() %7B%0A%09%7D%0A%0A%09/**%0A%09 * Transforms a given node into x- and y-coordinates to display.%0A%09 * @param rank The rank of the nodes.%0A%09 * @param nodes The number of nodes in this rank.%0A%09 * @param current The index of this node in the current rank.%0A%09 * @return A %7B@link Point2D%7D containing the x- and y-coordinates for this node.%0A%09 */%0A%09public static Point2D transform(int rank, int nodes, int current) %7B%0A%09%09return new Point2D(rank * WIDTH, (current %25 nodes - (float) nodes / 2) * HEIGHT);%0A%09%7D%0A%7D%0A

Add a topological layout manager