X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model.editor%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Feditor%2Fhandles%2FWirePointHandle.java;h=b7cc23e99e572c2954656137e3464c9ef0c92c85;hb=0a04a4ed66ecebd4254541c4977599f6052c115a;hp=8fd0acd23294f7ea6efda65fdea391290dfdeddc;hpb=e5ba4628b160a373ed5e7bdcd96ae59b7fbc1faa;p=Mograsim.git diff --git a/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/WirePointHandle.java b/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/WirePointHandle.java index 8fd0acd2..b7cc23e9 100644 --- a/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/WirePointHandle.java +++ b/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/WirePointHandle.java @@ -5,7 +5,7 @@ import org.eclipse.swt.widgets.Display; import net.haspamelodica.swt.helper.gcs.GeneralGC; import net.haspamelodica.swt.helper.swtobjectwrappers.Point; -import net.mograsim.logic.core.wires.Wire; +import net.mograsim.logic.core.wires.CoreWire; import net.mograsim.logic.model.model.wires.GUIWire; public class WirePointHandle extends Handle @@ -19,7 +19,7 @@ public class WirePointHandle extends Handle public WirePointHandle(HandleManager manager, GUIWire parent, int pointIndex) { - super(); + super(3); this.manager = manager; this.parent = parent; this.pointIndex = pointIndex; @@ -32,6 +32,7 @@ public class WirePointHandle extends Handle { Point p = parent.getPathPoint(pointIndex); moveTo(p.x, p.y); + callRedrawListeners(); } @Override @@ -75,7 +76,7 @@ public class WirePointHandle extends Handle } /** - * Sets the index of the {@link Point} within the parent {@link Wire}s path that is controlled by this handle + * Sets the index of the {@link Point} within the parent {@link CoreWire}s path that is controlled by this handle * * @param index Index of the Point in the Wires path. * @throws IndexOutOfBoundsException