Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Devrim Gunyel
core
Commits
6eda7ed1
Commit
6eda7ed1
authored
Oct 31, 2019
by
Piotr Gawron
Browse files
export of z index for reactions added
parent
a096aa33
Changes
1
Hide whitespace changes
Inline
Side-by-side
pathvisio/src/main/java/lcsb/mapviewer/wikipathway/XML/ModelToGPML.java
View file @
6eda7ed1
...
...
@@ -269,7 +269,7 @@ public class ModelToGPML {
/**
* This function transform Compartments into Shapes (Oval or Rectangle) from
* PathVisio.
* PathVisio.
*
* @param model
* model where compartments are placed
...
...
@@ -338,7 +338,10 @@ public class ModelToGPML {
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=\"32827\" LineThickness=\"1.0\">\n"
);
interaction
.
append
(
" <Graphics "
+
"ConnectorType=\"Segmented\" "
+
"ZOrder=\""
+
rn
.
getReaction
().
getZ
()
+
"\" "
+
"LineThickness=\""
+
rn
.
getLine
().
getWidth
()
+
"\">\n"
);
if
(
rn
instanceof
Reactant
)
{
for
(
Point2D
p2d
:
line
.
getPoints
())
{
...
...
@@ -514,11 +517,10 @@ public class ModelToGPML {
interactions
.
append
(
" <Interaction GraphId=\""
+
reaction
.
getIdReaction
()
+
"\">\n"
);
interactions
.
append
(
biopaxParser
.
toReferenceXml
(
reaction
.
getMiriamData
()));
// interactions.append(" <Attribute Key=\"org.pathvisio.core.ds\"
// Value=\"\"/>\n");
// interactions.append(" <Attribute Key=\"org.pathvisio.core.id\"
// Value=\"\"/>\n");
interactions
.
append
(
" <Graphics ConnectorType=\"Segmented\" ZOrder=\"32827\" LineThickness=\"1.0\">\n"
);
interactions
.
append
(
" <Graphics "
+
"ConnectorType=\"Segmented\" "
+
"ZOrder=\""
+
reaction
.
getZ
()
+
"\" "
+
"LineThickness=\""
+
reaction
.
getLine
().
getWidth
()
+
"\">\n"
);
/** Start and End **/
Reactant
start
=
reaction
.
getReactants
().
get
(
0
);
...
...
@@ -608,7 +610,7 @@ public class ModelToGPML {
return
gpml
.
toString
();
}
private
String
colorToString
(
Color
color
)
{
return
colorParser
.
colorToHtml
(
color
).
substring
(
1
);
}
...
...
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