Commit b246c9f2 authored by Piotr Gawron's avatar 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
...@@ -240,6 +240,13 @@ public class ModificationResidueExporter { ...@@ -240,6 +240,13 @@ public class ModificationResidueExporter {
public BoundingBox createBoundingBoxForModificationText(ModificationResidue mr) { public BoundingBox createBoundingBoxForModificationText(ModificationResidue mr) {
BoundingBox result = createBoundingBoxForModification(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); result.getPosition().setZ(result.getPosition().getZ() + 1);
return result; return result;
} }
......
Markdown is supported
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