Java 类org.eclipse.draw2d.ScalableFreeformLayeredPane 实例源码

项目:DarwinSPL    文件:DwFeatureModelEditPart.java   
@Override
protected IFigure createFigure() {
    ScalableFreeformLayeredPane layer = new ScalableFreeformLayeredPane();
    layer.setLayoutManager(new FreeformLayout());
    layer.setBorder(new LineBorder(1));
    layer.addLayoutListener(LayoutAnimator.getDefault());
    return layer;
}
项目:ForgedUI-Eclipse    文件:GridScalableFreeformRootEditPart.java   
/**
 * Creates a layered pane and the layers that should be scaled.
 * 
 * @return a new freeform layered pane containing the scalable layers
 */
protected ScalableFreeformLayeredPane createScaledLayers() {
    ScalableFreeformLayeredPane layers = new ScalableFreeformLayeredPane();
    layers.add(getPrintableLayers(), PRINTABLE_LAYERS);
    layers.add(new FeedbackLayer(), SCALED_FEEDBACK_LAYER);
    layers.add(createGridLayer(), GRID_LAYER);
    return layers;
}
项目:NEXCORE-UML-Modeler    文件:DiagramRootEditPart.java   
/**
 * @see org.eclipse.gef.editparts.ScalableFreeformRootEditPart#createScaledLayers()
 */
protected ScalableFreeformLayeredPane createScaledLayers() {

    ScalableFreeformLayeredPane layers = super.createScaledLayers();
    layers.add(new FreeformLayer(), PRINT_PREVIEW_LAYER, 0);
    return layers;
}
项目:PDFReporter-Studio    文件:MainDesignerRootEditPart.java   
@Override
protected ScalableFreeformLayeredPane createScaledLayers() {
    ScalableFreeformLayeredPane layers = new J2DScalableFreeformLayeredPane();
    // layers.add(createGridLayer(), GRID_LAYER);

    layers.add(getPrintableLayers(), PRINTABLE_LAYERS);
    layers.add(new FeedbackLayer(), SCALED_FEEDBACK_LAYER);
    layers.add(new FreeformLayer(), REPORT_LAYER);
    layers.add(new FreeformLayer(), SECTIONS_LAYER);
    layers.add(new FreeformLayer(), ELEMENTS_LAYER);

    return layers;
}
项目:gef-gwt    文件:ScalableFreeformRootEditPart.java   
/**
 * Creates a layered pane and the layers that should be scaled.
 * 
 * @return a new freeform layered pane containing the scalable layers
 */
protected ScalableFreeformLayeredPane createScaledLayers() {
    ScalableFreeformLayeredPane layers = new ScalableFreeformLayeredPane();
    layers.add(createGridLayer(), GRID_LAYER);
    layers.add(getPrintableLayers(), PRINTABLE_LAYERS);
    layers.add(new FeedbackLayer(), SCALED_FEEDBACK_LAYER);
    return layers;
}
项目:gef-gwt    文件:ZoomManager.java   
/**
 * @deprecated Use {@link #getScalableFigure()} instead. Returns the pane.
 * @return the pane
 */
public ScalableFreeformLayeredPane getPane() {
    Assert.isTrue(pane instanceof ScalableFreeformLayeredPane);
    return (ScalableFreeformLayeredPane) pane;
}
项目:gef-gwt    文件:ZoomManager.java   
/**
 * @deprecated Use {@link #ZoomManager(ScalableFigure, Viewport)} instead.
 *             Creates a new ZoomManager
 * @param pane
 *            The ScalableFreeformLayeredPane associated with this
 *            ZoomManager
 * @param viewport
 *            The Viewport assoicated with this viewport
 */
public ZoomManager(ScalableFreeformLayeredPane pane, Viewport viewport) {
    this.pane = pane;
    this.viewport = viewport;
}