Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
c4dcf825
Commit
c4dcf825
authored
Dec 02, 2019
by
Piotr Gawron
Browse files
arrows handling in SBML fixed
parent
d7b047ff
Pipeline
#17297
passed with stage
in 15 minutes and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
c4dcf825
...
...
@@ -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
...
...
converter-sbml/src/main/java/lcsb/mapviewer/converter/model/sbml/SbmlBioEntityExporter.java
View file @
c4dcf825
...
...
@@ -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
();
...
...
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