X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fexamples%2FRSLatchExample.java;h=084db6877750c1d2fccf397f4e3d63dc541f3ef5;hb=7d29de9658db31195b8b13d54b1efe2f72e0b157;hp=835d79481c5a04ba8bf957dd503209895f5de905;hpb=9c142c9ad59d2af070ebb6495b1ca48242da62d8;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/examples/RSLatchExample.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/examples/RSLatchExample.java index 835d7948..084db687 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/examples/RSLatchExample.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/examples/RSLatchExample.java @@ -41,21 +41,21 @@ public class RSLatchExample new GUIWire(model, or2.getOutputPin(), not2.getInputPins().get(0)); WireCrossPoint p1 = new WireCrossPoint(model, 1); - p1.moveTo(250, 112.5); - new GUIWire(model, not1.getOutputPin(), p1.getPin()); - new GUIWire(model, p1.getPin(), or2.getInputPins().get(0), new Point(250, 130), new Point(140, 185), new Point(140, 197.5)); + p1.moveCenterTo(250, 112.5); + new GUIWire(model, not1.getOutputPin(), p1); + new GUIWire(model, p1, or2.getInputPins().get(0), new Point(250, 130), new Point(140, 185), new Point(140, 197.5)); WireCrossPoint p2 = new WireCrossPoint(model, 1); - p2.moveTo(250, 202.5); - new GUIWire(model, not2.getOutputPin(), p2.getPin()); - new GUIWire(model, p2.getPin(), or1.getInputPins().get(1), new Point(250, 185), new Point(140, 130), new Point(140, 117.5)); + p2.moveCenterTo(250, 202.5); + new GUIWire(model, not2.getOutputPin(), p2); + new GUIWire(model, p2, or1.getInputPins().get(1), new Point(250, 185), new Point(140, 130), new Point(140, 117.5)); WireCrossPoint o1 = new WireCrossPoint(model, 1); - o1.moveTo(270, 112.5); - new GUIWire(model, p1.getPin(), o1.getPin()); + o1.moveCenterTo(270, 112.5); + new GUIWire(model, p1, o1); WireCrossPoint o2 = new WireCrossPoint(model, 1); - o2.moveTo(270, 202.5); - new GUIWire(model, p2.getPin(), o2.getPin()); + o2.moveCenterTo(270, 202.5); + new GUIWire(model, p2, o2); } } \ No newline at end of file