Search in sources :

Example 1 with NodeInPortFigure

use of org.knime.workbench.editor2.figures.NodeInPortFigure in project knime-core by knime.

the class NodeInPortEditPart method createFigure.

/**
 * {@inheritDoc}
 */
@Override
protected IFigure createFigure() {
    // Create the figure, we need the number of ports from the parent
    // container
    NodeContainerUI container = getNodeContainer();
    boolean isMetaNode = !(container instanceof SingleNodeContainerUI);
    NodeInPortFigure portFigure = new NodeInPortFigure(getType(), getIndex(), container.getNrInPorts(), isMetaNode, container.getInPort(getIndex()).getPortName());
    portFigure.setIsConnected(isConnected());
    return portFigure;
}
Also used : NodeContainerUI(org.knime.core.ui.node.workflow.NodeContainerUI) SingleNodeContainerUI(org.knime.core.ui.node.workflow.SingleNodeContainerUI) SingleNodeContainerUI(org.knime.core.ui.node.workflow.SingleNodeContainerUI) NodeInPortFigure(org.knime.workbench.editor2.figures.NodeInPortFigure)

Aggregations

NodeContainerUI (org.knime.core.ui.node.workflow.NodeContainerUI)1 SingleNodeContainerUI (org.knime.core.ui.node.workflow.SingleNodeContainerUI)1 NodeInPortFigure (org.knime.workbench.editor2.figures.NodeInPortFigure)1