Search in sources :

Example 1 with WorkflowLayout

use of org.knime.workbench.editor2.figures.WorkflowLayout 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;
}
Also used : WorkflowLayout(org.knime.workbench.editor2.figures.WorkflowLayout) WorkflowFigure(org.knime.workbench.editor2.figures.WorkflowFigure) LayoutManager(org.eclipse.draw2d.LayoutManager)

Aggregations

LayoutManager (org.eclipse.draw2d.LayoutManager)1 WorkflowFigure (org.knime.workbench.editor2.figures.WorkflowFigure)1 WorkflowLayout (org.knime.workbench.editor2.figures.WorkflowLayout)1