projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved Am2904/Am2910Testbenches to test source folder
[Mograsim.git]
/
net.mograsim.logic.model.editor
/
src
/
net
/
mograsim
/
logic
/
model
/
editor
/
handles
/
InterfacePinHandle.java
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
1b963a1
..
189d3d1
100644
(file)
--- 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)
{
public InterfacePinHandle(MovablePin parent, DeserializedSubmodelComponent pinOwner)
{
- super();
+ super(
2
);
this.parent = parent;
this.owner = pinOwner;
setSize(CIRCLE_DIAM, CIRCLE_DIAM);
this.parent = parent;
this.owner = pinOwner;
setSize(CIRCLE_DIAM, CIRCLE_DIAM);
@@
-29,7
+29,7
@@
public class InterfacePinHandle extends PinHandle
private void initPos()
{
Point pos = parent.getPos();
private void initPos()
{
Point pos = parent.getPos();
- moveTo(pos.x
- CIRCLE_RADIUS, pos.y - CIRCLE_RADIUS
);
+ moveTo(pos.x
, pos.y
);
}
@Override
}
@Override
@@
-78,7
+78,7
@@
public class InterfacePinHandle extends PinHandle
@Override
protected void moveTo(double x, double y)
{
@Override
protected void moveTo(double x, double y)
{
- super.moveTo(x
, y
);
+ super.moveTo(x
- CIRCLE_RADIUS, y - CIRCLE_RADIUS
);
parent.setRelPos(getCenterX(), getCenterY());
}
parent.setRelPos(getCenterX(), getCenterY());
}