Commit c4dcf825 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

arrows handling in SBML fixed

parent d7b047ff
Pipeline #17297 passed with stage
in 15 minutes and 23 seconds
......@@ -9,6 +9,7 @@ minerva (14.0.5) stable; urgency=medium
produce empty screen for several seconds/minutes - now the loading icon is
present (#1025)
* Bug fix: search for NADH drug resulted in drug with empty name (#1018)
* Bug fix: export to SBML didn't handle properly arrows (#1015)
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 02 Dec 2019 16:00:00 +0200
......
......@@ -292,7 +292,7 @@ public abstract class SbmlBioEntityExporter<T extends BioEntity, S extends org.s
}
private void createCircleLineEnding(LineEnding result) {
BoundingBox boundingBox = createBoundingBox(-2, 0, 4, 4, 0);
BoundingBox boundingBox = createBoundingBox(-2, 0, 0, 4, 4);
result.getGroup().setFill(getColorDefinition(Color.WHITE).getId());
result.setBoundingBox(boundingBox);
Ellipse ellipse = new Ellipse();
......@@ -308,7 +308,7 @@ public abstract class SbmlBioEntityExporter<T extends BioEntity, S extends org.s
}
private void createOpenLineEnding(LineEnding result) {
BoundingBox boundingBox = createBoundingBox(-12, -6, 12, 12, 0);
BoundingBox boundingBox = createBoundingBox(-12, -6, 0, 12, 12);
result.setBoundingBox(boundingBox);
Polygon polygon = new Polygon();
polygon.addElement(createRenderPoint(0, 0));
......@@ -319,7 +319,7 @@ public abstract class SbmlBioEntityExporter<T extends BioEntity, S extends org.s
}
private void createDiamondLineEnding(LineEnding result) {
BoundingBox boundingBox = createBoundingBox(-18, -6, 18, 12, 0);
BoundingBox boundingBox = createBoundingBox(-18, -6, 0, 18, 12);
result.setBoundingBox(boundingBox);
result.getGroup().setFill(getColorDefinition(Color.WHITE).getId());
Polygon polygon = new Polygon();
......@@ -332,7 +332,7 @@ public abstract class SbmlBioEntityExporter<T extends BioEntity, S extends org.s
}
private void createCrossBarLineEnding(LineEnding result) {
BoundingBox boundingBox = createBoundingBox(0, -6, 1, 12, 0);
BoundingBox boundingBox = createBoundingBox(0, -6, 0, 1, 12);
result.setBoundingBox(boundingBox);
Polygon crossBar = new Polygon();
crossBar.addElement(createRenderPoint(0, 0));
......@@ -346,7 +346,7 @@ public abstract class SbmlBioEntityExporter<T extends BioEntity, S extends org.s
}
private void createFullLineEnding(LineEnding result) {
BoundingBox boundingBox = createBoundingBox(-12, -6, 12, 12, 0);
BoundingBox boundingBox = createBoundingBox(-12, -6, 0, 12, 12);
result.setBoundingBox(boundingBox);
result.getGroup().setFill(getColorDefinition(Color.BLACK).getId());
Polygon polygon = new Polygon();
......@@ -358,7 +358,7 @@ public abstract class SbmlBioEntityExporter<T extends BioEntity, S extends org.s
}
private void createBlankCrossBarLineEnding(LineEnding result) {
BoundingBox boundingBox = createBoundingBox(-18, -6, 18, 12, 0);
BoundingBox boundingBox = createBoundingBox(-18, -6, 0, 18, 12);
result.setBoundingBox(boundingBox);
result.getGroup().setFill(getColorDefinition(Color.WHITE).getId());
Polygon polygon = new Polygon();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment