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
b246c9f2
Commit
b246c9f2
authored
Mar 18, 2021
by
Piotr Gawron
Browse files
state text is centered in the residue shape
parent
1a9e9c07
Pipeline
#38582
failed with stage
in 64 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
converter-sbml/src/main/java/lcsb/mapviewer/converter/model/sbml/species/ModificationResidueExporter.java
View file @
b246c9f2
...
...
@@ -240,6 +240,13 @@ public class ModificationResidueExporter {
public
BoundingBox
createBoundingBoxForModificationText
(
ModificationResidue
mr
)
{
BoundingBox
result
=
createBoundingBoxForModification
(
mr
);
if
(
mr
instanceof
ModificationSite
)
{
result
.
getPosition
().
setY
(
result
.
getPosition
().
getY
()
-
DEFAULT_MODIFICATION_DIAMETER
);
}
result
.
getPosition
().
setX
(
result
.
getPosition
().
getX
()
+
2
);
result
.
getPosition
().
setY
(
result
.
getPosition
().
getY
()
+
2
);
result
.
getDimensions
().
setWidth
(
result
.
getDimensions
().
getWidth
()
-
4
);
result
.
getDimensions
().
setHeight
(
result
.
getDimensions
().
getHeight
()
-
4
);
result
.
getPosition
().
setZ
(
result
.
getPosition
().
getZ
()
+
1
);
return
result
;
}
...
...
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