Skip to content
Snippets Groups Projects
Commit 145f2538 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

central line in reduced notation should be drawn differently

parent aa28dc14
No related branches found
No related tags found
1 merge request!380Resolve "'Reduced modulation' edge transfer to Minerva"
......@@ -45,6 +45,7 @@ import lcsb.mapviewer.model.map.kinetics.SbmlKinetics;
import lcsb.mapviewer.model.map.model.Model;
import lcsb.mapviewer.model.map.model.ModelData;
import lcsb.mapviewer.model.map.reaction.type.ReactionRect;
import lcsb.mapviewer.model.map.reaction.type.ReducedNotation;
import lcsb.mapviewer.model.map.reaction.type.TwoProductReactionInterface;
import lcsb.mapviewer.model.map.reaction.type.TwoReactantReactionInterface;
import lcsb.mapviewer.model.map.species.Element;
......@@ -469,9 +470,7 @@ public class Reaction implements BioEntity {
if (firstOperator != null) {
startPoint = firstOperator.getLine().getPoints().get(firstOperator.getLine().getPoints().size() - 2);
}
}
if (this instanceof TwoProductReactionInterface) {
} else if (this instanceof TwoProductReactionInterface) {
NodeOperator firstOperator = null;
......@@ -483,6 +482,9 @@ public class Reaction implements BioEntity {
if (firstOperator != null) {
endPoint = firstOperator.getLine().getPoints().get(firstOperator.getLine().getPoints().size() - 2);
}
} else if (this instanceof ReducedNotation) {
startPoint = reactant.getLine().getEndPoint();
endPoint = product.getLine().getBeginPoint();
}
return new Line2D.Double(startPoint, endPoint);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment