Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
2da95dd8
Commit
2da95dd8
authored
May 29, 2019
by
Piotr Gawron
Browse files
center line should have proper line type assigned
parent
b5786fc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
converter-CellDesigner/src/main/java/lcsb/mapviewer/converter/model/celldesigner/reaction/ReactionFromXml.java
View file @
2da95dd8
...
...
@@ -681,6 +681,7 @@ public class ReactionFromXml {
PolylineData
centerLine
=
new
PolylineData
();
centerLine
.
addPoint
(
pointTransformation
.
copyPoint
(
reactant
.
getLine
().
getEndPoint
()));
centerLine
.
addPoint
(
pointTransformation
.
copyPoint
(
operator
.
getLine
().
getEndPoint
()));
centerLine
.
setType
(
reactant
.
getLine
().
getType
());
result
.
setLine
(
centerLine
);
}
...
...
@@ -897,6 +898,7 @@ public class ReactionFromXml {
PolylineData
centerLine
=
new
PolylineData
();
centerLine
.
addPoint
(
pointTransformation
.
copyPoint
(
andOperator
.
getLine
().
getEndPoint
()));
centerLine
.
addPoint
(
pointTransformation
.
copyPoint
(
product
.
getLine
().
getBeginPoint
()));
centerLine
.
setType
(
product
.
getLine
().
getType
());
result
.
setLine
(
centerLine
);
}
else
{
...
...
@@ -953,6 +955,7 @@ public class ReactionFromXml {
PolylineData
centerLine
=
new
PolylineData
();
centerLine
.
addPoint
(
pointTransformation
.
copyPoint
(
secondPoint
));
centerLine
.
addPoint
(
pointTransformation
.
copyPoint
(
thirdPoint
));
centerLine
.
setType
(
product
.
getLine
().
getType
());
result
.
setLine
(
centerLine
);
// product line is not trimmed
...
...
@@ -1185,16 +1188,17 @@ public class ReactionFromXml {
reactant
.
setLine
(
reactantLine
);
product
.
setLine
(
productLine
);
PolylineData
reactionLine
=
new
PolylineData
();
reactionLine
.
addPoint
(
pointTransformation
.
copyPoint
(
reactantLine
.
getEndPoint
()));
reactionLine
.
addPoint
(
pointTransformation
.
copyPoint
(
productLine
.
getBeginPoint
()));
reaction
.
setLine
(
reactionLine
);
ReactionLineData
rld
=
ReactionLineData
.
getByReactionType
(
reaction
.
getClass
());
reactantLine
.
setType
(
rld
.
getLineType
());
productLine
.
setType
(
rld
.
getLineType
());
productLine
.
getEndAtd
().
setArrowType
(
rld
.
getProductArrowType
());
productLine
.
trimEnd
(
rld
.
getProductLineTrim
());
PolylineData
reactionLine
=
new
PolylineData
();
reactionLine
.
addPoint
(
pointTransformation
.
copyPoint
(
reactantLine
.
getEndPoint
()));
reactionLine
.
addPoint
(
pointTransformation
.
copyPoint
(
productLine
.
getBeginPoint
()));
reactionLine
.
setType
(
reactantLine
.
getType
());
reaction
.
setLine
(
reactionLine
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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