Search in sources :

Example 1 with SnapOffBendPointConnectionRouter

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;
}
Also used : SnapOffBendPointConnectionRouter(org.knime.workbench.editor2.editparts.snap.SnapOffBendPointConnectionRouter) ArrayList(java.util.ArrayList) ProgressPolylineConnection(org.knime.workbench.editor2.figures.ProgressPolylineConnection) CurvedPolylineConnection(org.knime.workbench.editor2.figures.CurvedPolylineConnection)

Aggregations

ArrayList (java.util.ArrayList)1 SnapOffBendPointConnectionRouter (org.knime.workbench.editor2.editparts.snap.SnapOffBendPointConnectionRouter)1 CurvedPolylineConnection (org.knime.workbench.editor2.figures.CurvedPolylineConnection)1 ProgressPolylineConnection (org.knime.workbench.editor2.figures.ProgressPolylineConnection)1