use of org.knime.workbench.editor2.figures.WorkflowInPortBarFigure in project knime-core by knime.
the class WorkflowInPortBarEditPart 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 WorkflowInPortBarFigure(newBounds);
} else {
return new WorkflowInPortBarFigure(getMinMaxXcoordInWorkflow()[0]);
}
}
Aggregations