From a0b5a0ef0edcf3de3c6ec3a21aa76f80afb74935 Mon Sep 17 00:00:00 2001 From: Kris De Volder Date: Wed, 25 Sep 2019 17:52:17 -0700 Subject: [PATCH] Tweak to label alignment --- .../ide/si/view/SprottySiViewApplication.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/headless-services/sprotty-si-view/src/main/java/org/springframework/ide/si/view/SprottySiViewApplication.java b/headless-services/sprotty-si-view/src/main/java/org/springframework/ide/si/view/SprottySiViewApplication.java index 69e5d24dd..6aecf536d 100644 --- a/headless-services/sprotty-si-view/src/main/java/org/springframework/ide/si/view/SprottySiViewApplication.java +++ b/headless-services/sprotty-si-view/src/main/java/org/springframework/ide/si/view/SprottySiViewApplication.java @@ -5,6 +5,7 @@ import java.util.EnumSet; import org.eclipse.elk.alg.layered.options.FixedAlignment; import org.eclipse.elk.alg.layered.options.LayeredOptions; import org.eclipse.elk.core.math.ElkPadding; +import org.eclipse.elk.core.options.Alignment; import org.eclipse.elk.core.options.EdgeRouting; import org.eclipse.elk.core.options.NodeLabelPlacement; import org.eclipse.elk.core.options.PortConstraints; @@ -48,12 +49,11 @@ public class SprottySiViewApplication { holder = configurator.configureByType("node:integration"); holder.setProperty(LayeredOptions.PORT_CONSTRAINTS, PortConstraints.FIXED_SIDE); - holder.setProperty(LayeredOptions.NODE_LABELS_PLACEMENT, EnumSet.of(NodeLabelPlacement.OUTSIDE, NodeLabelPlacement.V_BOTTOM)); + holder.setProperty(LayeredOptions.NODE_LABELS_PLACEMENT, NodeLabelPlacement.outsideBottomCenter()); holder.setProperty(LayeredOptions.NODE_LABELS_PADDING, new ElkPadding(5.0)); holder = configurator.configureByType("node:label"); - holder.setProperty(LayeredOptions.NODE_LABELS_PLACEMENT, EnumSet.of(NodeLabelPlacement.OUTSIDE, NodeLabelPlacement.V_BOTTOM)); - holder.setProperty(LayeredOptions.NODE_LABELS_PADDING, new ElkPadding(5.0)); + holder.setProperty(LayeredOptions.NODE_LABELS_PLACEMENT, NodeLabelPlacement.outsideBottomCenter()); return configurator; }