Search in sources :

Example 6 with LayoutManager

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

Example 7 with LayoutManager

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();
}
Also used : LayoutManager(org.eclipse.draw2d.LayoutManager) IFigure(org.eclipse.draw2d.IFigure)

Aggregations

LayoutManager (org.eclipse.draw2d.LayoutManager)7 IFigure (org.eclipse.draw2d.IFigure)4 GraphicalEditPart (org.eclipse.gef.GraphicalEditPart)2 ColumnFigure (com.liferay.ide.layouttpl.ui.draw2d.ColumnFigure)1 GridData (org.eclipse.draw2d.GridData)1 ToolbarLayout (org.eclipse.draw2d.ToolbarLayout)1 Point (org.eclipse.draw2d.geometry.Point)1 Rectangle (org.eclipse.draw2d.geometry.Rectangle)1 EditPart (org.eclipse.gef.EditPart)1 ColumnsLayout (org.eclipse.gef.internal.ui.palette.editparts.ColumnsLayout)1 PaletteContainerFlowLayout (org.eclipse.gef.internal.ui.palette.editparts.PaletteContainerFlowLayout)1 WorkflowFigure (org.knime.workbench.editor2.figures.WorkflowFigure)1 WorkflowLayout (org.knime.workbench.editor2.figures.WorkflowLayout)1 XmlMapDataLayout (org.talend.designer.gefabstractmap.figures.layout.XmlMapDataLayout)1 SashSeparator (org.talend.designer.gefabstractmap.figures.sash.SashSeparator)1 AbstractTable (org.talend.designer.gefabstractmap.figures.table.AbstractTable)1 ColumnSash (org.talend.designer.gefabstractmap.figures.table.ColumnSash)1 ITable (org.talend.designer.gefabstractmap.figures.table.ITable)1 TableColumn (org.talend.designer.gefabstractmap.figures.table.TableColumn)1