use of org.knime.core.node.workflow.NodeUIInformation in project knime-core by knime.
the class WorkflowOutPortBarEditPart method createFigure.
/**
* {@inheritDoc}
*/
@Override
protected IFigure createFigure() {
NodeUIInformation uiInfo = ((WorkflowPortBar) getModel()).getUIInfo();
if (uiInfo != null) {
int[] bounds = uiInfo.getBounds();
Rectangle newBounds = new Rectangle(bounds[0], bounds[1], bounds[2], bounds[3]);
return new WorkflowOutPortBarFigure(newBounds);
} else {
int[] minmax = getMinMaxXcoordInWorkflow();
return new WorkflowOutPortBarFigure(minmax[1]);
}
}
Aggregations