Search in sources :

Example 6 with FreeformLayer

use of org.eclipse.draw2d.FreeformLayer in project cubrid-manager by CUBRID.

the class DiagramPart method createFigure.

/**
	 * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
	 * @return figure
	 */
protected IFigure createFigure() {
    Figure figure = new FreeformLayer();
    figure.setLayoutManager(new FreeformLayout());
    return figure;
}
Also used : FreeformLayout(org.eclipse.draw2d.FreeformLayout) FreeformLayer(org.eclipse.draw2d.FreeformLayer) IFigure(org.eclipse.draw2d.IFigure) Figure(org.eclipse.draw2d.Figure)

Example 7 with FreeformLayer

use of org.eclipse.draw2d.FreeformLayer in project cubrid-manager by CUBRID.

the class DashboardPart method createFigure.

/**
	 * create a new figure used by DashboardPart
	 * 
	 * @return FreeformLayer with FreeformLayout
	 */
protected IFigure createFigure() {
    Figure figure = new FreeformLayer();
    figure.setLayoutManager(new FreeformLayout());
    return figure;
}
Also used : FreeformLayout(org.eclipse.draw2d.FreeformLayout) FreeformLayer(org.eclipse.draw2d.FreeformLayer) Figure(org.eclipse.draw2d.Figure) IFigure(org.eclipse.draw2d.IFigure)

Example 8 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 9 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 10 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)

Aggregations

FreeformLayer (org.eclipse.draw2d.FreeformLayer)10 Figure (org.eclipse.draw2d.Figure)5 FreeformLayout (org.eclipse.draw2d.FreeformLayout)5 IFigure (org.eclipse.draw2d.IFigure)5 ScalableFreeformLayeredPane (org.eclipse.draw2d.ScalableFreeformLayeredPane)4 ConnectionLayer (org.eclipse.draw2d.ConnectionLayer)2 FreeformLayeredPane (org.eclipse.draw2d.FreeformLayeredPane)2 DelegatingLayout (org.eclipse.draw2d.DelegatingLayout)1 LayeredPane (org.eclipse.draw2d.LayeredPane)1 ContextMenuProvider (org.eclipse.gef.ContextMenuProvider)1 DiagramRootEditPart (org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramRootEditPart)1 IDiagramGraphicalViewer (org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramGraphicalViewer)1 IProcess2 (org.talend.core.model.process.IProcess2)1 JobletProcessItem (org.talend.core.model.properties.JobletProcessItem)1 BusinessDiagramActionProvider (org.talend.designer.business.model.business.diagram.providers.BusinessDiagramActionProvider)1 SubjobContainerFigure (org.talend.designer.core.ui.editor.subjobcontainer.SubjobContainerFigure)1 SparkStreamingSubjobContainerFigure (org.talend.designer.core.ui.editor.subjobcontainer.sparkstreaming.SparkStreamingSubjobContainerFigure)1