Skip to content
Snippets Groups Projects
Commit f99830f0 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

when changing layout of comartment text point is modified

parent 3136d0b6
No related branches found
No related tags found
1 merge request!243Resolve partially "Allow for color and line thickness control in the generated layout"
......@@ -149,6 +149,7 @@ public class ApplySimpleLayoutModelCommand extends ApplyLayoutModelCommand {
compartment.setY(minPoint.getY() + COMPARTMENT_BORDER);
compartment.setWidth(dimension.getWidth() - COMPARTMENT_BORDER * 2);
compartment.setHeight(dimension.getHeight() - COMPARTMENT_BORDER * 2);
compartment.setNamePoint(minPoint.getX() + COMPARTMENT_BORDER * 2, minPoint.getY() + COMPARTMENT_BORDER * 2);
Point2D point = new Point2D.Double(minPoint.getX() + COMPARTMENT_BORDER, minPoint.getY() + COMPARTMENT_BORDER);
Dimension2D recursiveDimension = new DoubleDimension(dimension.getWidth() - COMPARTMENT_BORDER * 2,
dimension.getHeight() - COMPARTMENT_BORDER * 2);
......@@ -218,7 +219,7 @@ public class ApplySimpleLayoutModelCommand extends ApplyLayoutModelCommand {
Point2D middle = getMiddlePoint(productElement.getCenter(), reactantElement.getCenter());
//for self reactions
// for self reactions
if (productElement.equals(reactantElement)) {
middle.setLocation(middle.getX(), middle.getY() + 50);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment