ui = new PipelineActivityEdgeUi((OperationGraph2D) graph, (PipelineActivityEdge) edge);
} else {
throw new RuntimeException("Unexpected edge type: " + edge);
}
if (EdgeTypePreference.get() == EdgeType.RIGHT_ANGLES) {
LineSegmentFactory segmentFactory = new PerpendicularLineSegmentFactory(graph, edge);
ui.setLineSegmentFactory(segmentFactory);
}
ui.setLineWidth(2);
ui.setArrowSize(6);
return ui;