use of org.eclipse.draw2d.LayoutManager in project knime-core by knime.
the class WorkflowRootEditPart method createFigure.
/**
* Creates the root(="background") figure and sets the appropriate lazout
* manager.
*
* {@inheritDoc}
*/
@Override
protected WorkflowFigure createFigure() {
WorkflowFigure backgroundFigure = new WorkflowFigure();
LayoutManager l = new WorkflowLayout();
backgroundFigure.setLayoutManager(l);
return backgroundFigure;
}
use of org.eclipse.draw2d.LayoutManager in project knime-core by knime.
the class NodeContainerEditPart method relayoutPorts.
private void relayoutPorts() {
IFigure nodeFig = getFigure();
LayoutManager layoutManager = nodeFig.getLayoutManager();
if (layoutManager != null) {
layoutManager.invalidate();
layoutManager.layout(figure);
}
nodeFig.repaint();
}
Aggregations