projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed issues with WirePointHandle
[Mograsim.git]
/
net.mograsim.logic.model.editor
/
src
/
net
/
mograsim
/
logic
/
model
/
editor
/
handles
/
WirePointHandle.java
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
0779247
..
48c7c22
100644
(file)
--- 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 final HandleManager manager;
private boolean selected = false;
public final GUIWire parent;
-
+
private int pointIndex;
public WirePointHandle(HandleManager manager, GUIWire parent, int pointIndex)
private int pointIndex;
public WirePointHandle(HandleManager manager, GUIWire parent, int pointIndex)
@@
-32,8
+32,9
@@
public class WirePointHandle extends Handle
{
Point p = parent.getPathPoint(pointIndex);
moveTo(p.x, p.y);
{
Point p = parent.getPathPoint(pointIndex);
moveTo(p.x, p.y);
+ callRedrawListeners();
}
}
-
+
@Override
public void render(GeneralGC gc)
{
@Override
public void render(GeneralGC gc)
{
@@
-47,7
+48,7
@@
public class WirePointHandle extends Handle
{
parent.setPathPoint(new Point(x, y), pointIndex);
}
{
parent.setPathPoint(new Point(x, y), pointIndex);
}
-
+
@Override
public void onSelect()
{
@Override
public void onSelect()
{
@@
-61,13
+62,13
@@
public class WirePointHandle extends Handle
selected = false;
callRedrawListeners();
}
selected = false;
callRedrawListeners();
}
-
+
@Override
public void reqDelete()
{
manager.destroyWirePointHandle(parent, this);
}
@Override
public void reqDelete()
{
manager.destroyWirePointHandle(parent, this);
}
-
+
@Override
public HandleType getType()
{
@Override
public HandleType getType()
{
@@
-76,6
+77,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 Wire}s path that is controlled by this handle
+ *
* @param index Index of the Point in the Wires path.
* @throws IndexOutOfBoundsException
*/
* @param index Index of the Point in the Wires path.
* @throws IndexOutOfBoundsException
*/