X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model.editor%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Feditor%2Fhandles%2FInterfacePinHandle.java;h=f585224ae66c38cb2066db8890ad2789d1cf6a00;hb=6b2af588898986c750a4121b49631dfc11e941db;hp=9eff5ced7e345c364c90bd45d40fa53f6e445351;hpb=8b3e82a368d51751f2660e88a1b9fea9dfeb7e02;p=Mograsim.git diff --git a/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/InterfacePinHandle.java b/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/InterfacePinHandle.java index 9eff5ced..f585224a 100644 --- a/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/InterfacePinHandle.java +++ b/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/InterfacePinHandle.java @@ -19,7 +19,7 @@ public class InterfacePinHandle extends PinHandle public InterfacePinHandle(MovablePin parent, DeserializedSubmodelComponent pinOwner) { - super(); + super(2); this.parent = parent; this.owner = pinOwner; setSize(CIRCLE_DIAM, CIRCLE_DIAM); @@ -43,8 +43,7 @@ public class InterfacePinHandle extends PinHandle if (selected) { gc.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_YELLOW)); - gc.drawOval(x - SELECTED_CIRCLE_OFFSET, y - SELECTED_CIRCLE_OFFSET, SELECTED_CIRCLE_DIAM, - SELECTED_CIRCLE_DIAM); + gc.drawOval(x - SELECTED_CIRCLE_OFFSET, y - SELECTED_CIRCLE_OFFSET, SELECTED_CIRCLE_DIAM, SELECTED_CIRCLE_DIAM); } gc.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_RED)); gc.fillOval(getPosX(), getPosY(), CIRCLE_DIAM, CIRCLE_DIAM); @@ -75,7 +74,7 @@ public class InterfacePinHandle extends PinHandle { owner.removeSubmodelInterface(parent.name); } - + @Override protected void moveTo(double x, double y) {