Tweak to label alignment
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user