use of org.knime.workbench.editor2.editparts.snap.SnapOffBendPointConnectionRouter in project knime-core by knime.
the class ConnectionContainerEditPart method createFigure.
/**
* {@inheritDoc}
*/
@Override
protected IFigure createFigure() {
ProgressPolylineConnection conn = new CurvedPolylineConnection(false);
// Bendpoints
SnapOffBendPointConnectionRouter router = new SnapOffBendPointConnectionRouter();
conn.setConnectionRouter(router);
conn.setRoutingConstraint(new ArrayList());
conn.setLineWidth(getCurrentEditorSettings().getConnectionLineWidth());
// make flow variable port connections look red.
if (getModel().isFlowVariablePortConnection()) {
conn.setForegroundColor(AbstractPortFigure.getFlowVarPortColor());
}
return conn;
}
Aggregations