- /**
- * Add a component to be drawn. Returns the given component for convenience.
- *
- * @author Daniel Kirschten
- */
- // TODO replace with model change listener
- public <C extends GUIComponent> C addComponent(C component)
- {
- components.add(component);
- return component;
- }
-
- /**
- * Add a graphical wire between the given connection points of the given components. The given components have to be added and the given
- * connection points have to be connected logically first.
- *
- * @author Daniel Kirschten
- */
- // TODO replace with model change listener
- public void addWire(Pin pin1, Pin pin2, Point... path)
- {
- wires.add(new GUIWire(this::redrawThreadsafe, pin1, pin2, path));
- }
-