- new GUIWire(submodelModifiable, _S, nand1.getInputPins().get(0));
- new GUIWire(submodelModifiable, _R, nand2.getInputPins().get(1));
- new GUIWire(submodelModifiable, nand1.getOutputPin(), cp1.getPin());
- new GUIWire(submodelModifiable, nand2.getOutputPin(), cp2.getPin());
- new GUIWire(submodelModifiable, cp1.getPin(), nand2.getInputPins().get(0), new Point(120, 50), new Point(60, 75),
- new Point(60, 90));
- new GUIWire(submodelModifiable, cp2.getPin(), nand1.getInputPins().get(1), new Point(120, 75), new Point(60, 50),
- new Point(60, 35));
- new GUIWire(submodelModifiable, cp1.getPin(), Q, new Point(150, 30), new Point(150, 25));
- new GUIWire(submodelModifiable, cp2.getPin(), _Q, new Point(150, 95), new Point(150, 100));
+ nand1.moveTo(10, 7.5);
+ nand2.moveTo(40, 12.5);
+ cp1.moveTo(35, 17.5);
+ cp2.moveTo(65, 37.5);
+
+ new GUIWire(submodelModifiable, _S, nand1.getInputPins().get(0), new Point[0]);
+ new GUIWire(submodelModifiable, _R, nand2.getInputPins().get(1), new Point(35, 37.5), new Point(35, 27.5));
+ new GUIWire(submodelModifiable, nand1.getOutputPin(), cp1, new Point[0]);
+ new GUIWire(submodelModifiable, nand2.getOutputPin(), cp2, new Point(65, 22.5));
+ new GUIWire(submodelModifiable, cp1, nand2.getInputPins().get(0), new Point[0]);
+ new GUIWire(submodelModifiable, cp2, nand1.getInputPins().get(1), new Point(65, 42.5), new Point(5, 42.5), new Point(5, 22.5));
+ new GUIWire(submodelModifiable, cp1, Q, new Point(35, 17.5), new Point(35, 7.5), new Point(65, 7.5), new Point(65, 12.5));
+ new GUIWire(submodelModifiable, cp2, _Q, new Point[0]);