use of org.knime.workbench.editor2.figures.AbstractWorkflowPortBarFigure in project knime-core by knime.
the class AbstractWorkflowPortBarEditPart method refreshVisuals.
/**
* {@inheritDoc}
*/
@Override
protected void refreshVisuals() {
NodeUIInformation uiInfo = ((WorkflowPortBar) getModel()).getUIInfo();
if (uiInfo != null && !((AbstractWorkflowPortBarFigure) getFigure()).isInitialized()) {
int[] bounds = uiInfo.getBounds();
((AbstractWorkflowPortBarFigure) getFigure()).setBounds(new Rectangle(bounds[0], bounds[1], bounds[2], bounds[3]));
}
super.refreshVisuals();
}
Aggregations