Tweak to label alignment

This commit is contained in:
Kris De Volder
2019-09-25 17:52:17 -07:00
parent 2a862a786c
commit a0b5a0ef0e

View File

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