1 package de.lathanda.eos.gui.flowchart;
3 import java.util.ArrayList;
5 import de.lathanda.eos.baseparser.ProgramSequence;
6 import de.lathanda.eos.gui.diagram.Drawing;
15 private ArrayList<ConnectedUnit> units;
18 units =
new ArrayList<>();
19 if (programSequence !=
null) {
32 if (previous ==
null) {
36 if (u.needsIncomingArrow) {
44 cy = u.getOffsetY() + u.getHeight();
46 if (previous !=
null) {
53 units.forEach(p -> p.layout(d));
57 if (maxw < u.getWidth()) {
61 h = h + u.getHeight() +
SPACE;
65 units.stream().forEach((u) -> {
void drawLine(float x1, float y1, float x2, float y2)
void drawArrow(float x1, float y1, float x2, float y2, float size)
final void draw(Drawing d)
boolean needsIncomingArrow
void layoutUnit(Drawing d)
ArrayList< ProgramNode > getInstructions()