Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Gitlab will go into maintenance Friday 3rd February from 9:00 to 10:00
Open sidebar
minerva
core
Commits
df5ca33b
Commit
df5ca33b
authored
May 13, 2019
by
Piotr Gawron
Browse files
operator point order fixed
parent
303a0610
Changes
1
Hide whitespace changes
Inline
Side-by-side
model-command/src/main/java/lcsb/mapviewer/commands/layout/ApplySimpleLayoutModelCommand.java
View file @
df5ca33b
...
...
@@ -272,7 +272,7 @@ public class ApplySimpleLayoutModelCommand extends ApplyLayoutModelCommand {
}
Point2D
productPoint
=
reaction
.
getReactants
().
get
(
0
).
getElement
().
getCenter
();
Point2D
operatorPoint
=
getMiddlePoint
(
middle
,
productPoint
);
operator
.
setLine
(
new
PolylineData
(
operatorPoint
,
middle
));
operator
.
setLine
(
new
PolylineData
(
operatorPoint
,
middle
));
reaction
.
addNode
(
operator
);
middle
=
operatorPoint
;
}
...
...
@@ -311,7 +311,7 @@ public class ApplySimpleLayoutModelCommand extends ApplyLayoutModelCommand {
}
Point2D
productPoint
=
reaction
.
getProducts
().
get
(
0
).
getElement
().
getCenter
();
Point2D
operatorPoint
=
getMiddlePoint
(
middle
,
productPoint
);
operator
.
setLine
(
new
PolylineData
(
middle
,
operatorPoint
));
operator
.
setLine
(
new
PolylineData
(
operatorPoint
,
middle
));
reaction
.
addNode
(
operator
);
middle
=
operatorPoint
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment