Search in sources :

Example 11 with FreeformLayout

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

the class Graph method createLayers.

private ScalableFigure createLayers() {
    rootlayer = new ScalableFreeformLayeredPane();
    rootlayer.setLayoutManager(new FreeformLayout());
    zestRootLayer = new ZestRootLayer();
    zestRootLayer.setLayoutManager(new FreeformLayout());
    fishEyeLayer = new ScalableFreeformLayeredPane();
    fishEyeLayer.setLayoutManager(new FreeformLayout());
    rootlayer.add(zestRootLayer);
    rootlayer.add(fishEyeLayer);
    zestRootLayer.addLayoutListener(LayoutAnimator.getDefault());
    fishEyeLayer.addLayoutListener(LayoutAnimator.getDefault());
    return rootlayer;
}
Also used : FreeformLayout(org.eclipse.draw2d.FreeformLayout) ScalableFreeformLayeredPane(org.eclipse.draw2d.ScalableFreeformLayeredPane) ZestRootLayer(org.eclipse.zest.core.widgets.internal.ZestRootLayer)

Aggregations

FreeformLayout (org.eclipse.draw2d.FreeformLayout)11 FreeformLayer (org.eclipse.draw2d.FreeformLayer)8 IFigure (org.eclipse.draw2d.IFigure)8 Figure (org.eclipse.draw2d.Figure)7 MarginBorder (org.eclipse.draw2d.MarginBorder)2 Point (org.eclipse.draw2d.geometry.Point)2 Rectangle (org.eclipse.draw2d.geometry.Rectangle)2 ZestRootLayer (org.eclipse.zest.core.widgets.internal.ZestRootLayer)2 FreeformViewport (org.eclipse.draw2d.FreeformViewport)1 Graphics (org.eclipse.draw2d.Graphics)1 LineBorder (org.eclipse.draw2d.LineBorder)1 Polyline (org.eclipse.draw2d.Polyline)1 RoundedRectangle (org.eclipse.draw2d.RoundedRectangle)1 ScalableFreeformLayeredPane (org.eclipse.draw2d.ScalableFreeformLayeredPane)1 ScrollPane (org.eclipse.draw2d.ScrollPane)1 Viewport (org.eclipse.draw2d.Viewport)1 GenericGroupFigure (org.eclipse.wst.xsd.ui.internal.design.figures.GenericGroupFigure)1 AspectRatioFreeformLayer (org.eclipse.zest.core.widgets.internal.AspectRatioFreeformLayer)1 ContainerFigure (org.eclipse.zest.core.widgets.internal.ContainerFigure)1 ExpandGraphLabel (org.eclipse.zest.core.widgets.internal.ExpandGraphLabel)1