Search in sources :

Example 16 with FreeformLayer

use of org.eclipse.draw2d.FreeformLayer in project tdi-studio-se by Talend.

the class ProcessPart method createFigure.

/*
     * (non-Javadoc)
     * 
     * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
     */
@Override
protected IFigure createFigure() {
    Figure figure = new FreeformLayer();
    figure.setLayoutManager(new FreeformLayout());
    fig2 = new FreeformLayer();
    getLayer(TalendScalableFreeformRootEditPart.PROCESS_BACKGROUND_LAYER).add(fig2);
    ajustReadOnly();
    // connLayer.setConnectionRouter(new NullRouter());
    return figure;
}
Also used : FreeformLayout(org.eclipse.draw2d.FreeformLayout) FreeformLayer(org.eclipse.draw2d.FreeformLayer) IFigure(org.eclipse.draw2d.IFigure) SubjobContainerFigure(org.talend.designer.core.ui.editor.subjobcontainer.SubjobContainerFigure) Figure(org.eclipse.draw2d.Figure)

Example 17 with FreeformLayer

use of org.eclipse.draw2d.FreeformLayer in project tdi-studio-se by Talend.

the class ErDiagramRootEditPart method createPrintableLayers.

@Override
protected LayeredPane createPrintableLayers() {
    FreeformLayeredPane layeredPane = new FreeformLayeredPane();
    layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER);
    layeredPane.add(new FreeformLayer(), PRIMARY_LAYER);
    return layeredPane;
}
Also used : ScalableFreeformLayeredPane(org.eclipse.draw2d.ScalableFreeformLayeredPane) FreeformLayeredPane(org.eclipse.draw2d.FreeformLayeredPane) FreeformLayer(org.eclipse.draw2d.FreeformLayer) ConnectionLayer(org.eclipse.draw2d.ConnectionLayer)

Example 18 with FreeformLayer

use of org.eclipse.draw2d.FreeformLayer in project tdi-studio-se by Talend.

the class TalendScalableFreeformRootEditPart method createPrintableLayers.

@Override
protected LayeredPane createPrintableLayers() {
    FreeformLayeredPane layeredPane = new FreeformLayeredPane();
    layeredPane.add(new FreeformLayer(), PRIMARY_LAYER);
    layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER);
    return layeredPane;
}
Also used : ScalableFreeformLayeredPane(org.eclipse.draw2d.ScalableFreeformLayeredPane) FreeformLayeredPane(org.eclipse.draw2d.FreeformLayeredPane) FreeformLayer(org.eclipse.draw2d.FreeformLayer) ConnectionLayer(org.eclipse.draw2d.ConnectionLayer)

Example 19 with FreeformLayer

use of org.eclipse.draw2d.FreeformLayer in project dbeaver by dbeaver.

the class LockGraphEditPart method createFigure.

@Override
protected IFigure createFigure() {
    FreeformLayer freeformLayer = new FreeformLayer();
    freeformLayer.setLayoutManager(new GridLayout(((LockGraph) getModel()).getMaxWidth(), true));
    return freeformLayer;
}
Also used : GridLayout(org.eclipse.draw2d.GridLayout) FreeformLayer(org.eclipse.draw2d.FreeformLayer)

Example 20 with FreeformLayer

use of org.eclipse.draw2d.FreeformLayer in project archi by archimatetool.

the class ScalableFreeformRootEditPart method createLayers.

/**
 * @see FreeformGraphicalRootEditPart#createLayers(LayeredPane)
 */
@Override
protected void createLayers(LayeredPane layeredPane) {
    layeredPane.add(getScaledLayers(), SCALABLE_LAYERS);
    layeredPane.add(new FreeformLayer(), HANDLE_LAYER);
    layeredPane.add(new FeedbackLayer(), FEEDBACK_LAYER);
    layeredPane.add(new GuideLayer(), GUIDE_LAYER);
}
Also used : FreeformLayer(org.eclipse.draw2d.FreeformLayer)

Aggregations

FreeformLayer (org.eclipse.draw2d.FreeformLayer)28 Figure (org.eclipse.draw2d.Figure)9 IFigure (org.eclipse.draw2d.IFigure)9 FreeformLayout (org.eclipse.draw2d.FreeformLayout)8 ScalableFreeformLayeredPane (org.eclipse.draw2d.ScalableFreeformLayeredPane)4 ConnectionLayer (org.eclipse.draw2d.ConnectionLayer)3 FreeformLayeredPane (org.eclipse.draw2d.FreeformLayeredPane)3 Rectangle (org.eclipse.draw2d.geometry.Rectangle)3 LineLayout (org.eclipse.gemoc.timeline.layout.LineLayout)3 Rectangle (org.eclipse.swt.graphics.Rectangle)3 Test (org.junit.Test)3 Label (org.eclipse.draw2d.Label)2 MarginBorder (org.eclipse.draw2d.MarginBorder)2 Image (org.eclipse.swt.graphics.Image)2 Shell (org.eclipse.swt.widgets.Shell)2 DelegatingLayout (org.eclipse.draw2d.DelegatingLayout)1 Graphics (org.eclipse.draw2d.Graphics)1 GridLayout (org.eclipse.draw2d.GridLayout)1 LayeredPane (org.eclipse.draw2d.LayeredPane)1 LineBorder (org.eclipse.draw2d.LineBorder)1