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;
}
Aggregations