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
2abe524c
Commit
2abe524c
authored
Jun 29, 2020
by
Piotr Gawron
Browse files
export color and line type for all nodes
parent
81edecf2
Pipeline
#29087
passed with stage
in 21 minutes and 54 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
2abe524c
...
...
@@ -4,6 +4,8 @@ minerva (15.0.2) stable; urgency=medium
*
Bug
fix
:
map
notes
were
not
exported
to
GPML
*
Bug
fix
:
reaction
notes
were
not
imported
from
GPML
*
Bug
fix
:
export
of
notes
could
create
invalid
GPML
file
(#
1299
)
*
Bug
fix
:
there
was
an
issue
with
exporting
color
and
line
type
of
reaction
additional
reactant
/
product
(#
1303
)
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Mon
,
29
Jun
2020
11
:
00
:
00
+
0200
...
...
pathvisio/src/main/java/lcsb/mapviewer/wikipathway/XML/ModelToGPML.java
View file @
2abe524c
...
...
@@ -386,13 +386,20 @@ public class ModelToGPML {
Point2D
pe
=
line
.
getEndPoint
();
double
anchorPosition
=
-
1
;
String
lineStyle
=
GpmlLineType
.
getByLineType
(
rn
.
getLine
().
getType
()).
getGpmlString
();
interaction
.
append
(
" <Interaction GraphId=\""
+
getNewId
()
+
"\">\n"
);
interaction
.
append
(
" <Attribute Key=\"org.pathvisio.core.ds\" Value=\"\"/>\n"
);
interaction
.
append
(
" <Attribute Key=\"org.pathvisio.core.id\" Value=\"\"/>\n"
);
interaction
.
append
(
" <Graphics "
+
"ConnectorType=\"Segmented\" "
+
"ZOrder=\""
+
rn
.
getReaction
().
getZ
()
+
"\" "
+
"LineThickness=\""
+
rn
.
getLine
().
getWidth
()
+
"\">\n"
);
+
"Color=\""
+
colorToString
(
rn
.
getLine
().
getColor
())
+
"\" "
);
if
(
lineStyle
!=
null
)
{
interaction
.
append
(
"LineStyle=\""
+
lineStyle
+
"\" "
);
}
interaction
.
append
(
"LineThickness=\""
+
rn
.
getLine
().
getWidth
()
+
"\">\n"
);
String
reactionArrowHead
=
InteractionMapping
.
getGpmlInteractionTypeForMinervaReactionClass
(
rn
.
getReaction
().
getClass
())
...
...
@@ -734,8 +741,6 @@ public class ModelToGPML {
}
interactions
.
append
(
"LineThickness=\""
+
reaction
.
getLine
().
getWidth
()
+
"\">\n"
);
/** Start and End **/
Reactant
start
=
reaction
.
getReactants
().
get
(
0
);
Product
end
=
reaction
.
getProducts
().
get
(
0
);
...
...
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