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; }