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=8fd0acd23294f7ea6efda65fdea391290dfdeddc;hb=878d036669f4aa9d0c332ced43da3a08b94655e9;hp=0779247f755e49cb2f3903b190ce82ac0af0cb48;hpb=c5c0d07286a29994a11ba8b01eaffb21964b6c1b;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 0779247f..8fd0acd2 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 @@ -14,7 +14,7 @@ public class WirePointHandle extends Handle private final HandleManager manager; private boolean selected = false; public final GUIWire parent; - + private int pointIndex; public WirePointHandle(HandleManager manager, GUIWire parent, int pointIndex) @@ -33,7 +33,7 @@ public class WirePointHandle extends Handle Point p = parent.getPathPoint(pointIndex); moveTo(p.x, p.y); } - + @Override public void render(GeneralGC gc) { @@ -47,7 +47,7 @@ public class WirePointHandle extends Handle { parent.setPathPoint(new Point(x, y), pointIndex); } - + @Override public void onSelect() { @@ -61,13 +61,13 @@ public class WirePointHandle extends Handle selected = false; callRedrawListeners(); } - + @Override public void reqDelete() { manager.destroyWirePointHandle(parent, this); } - + @Override public HandleType getType() { @@ -76,6 +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 + * * @param index Index of the Point in the Wires path. * @throws IndexOutOfBoundsException */