@Override protected IFigure createFigure() { ScalableFreeformLayeredPane layer = new ScalableFreeformLayeredPane(); layer.setLayoutManager(new FreeformLayout()); layer.setBorder(new LineBorder(1)); layer.addLayoutListener(LayoutAnimator.getDefault()); return layer; }
/** * 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; }
/** * @see org.eclipse.gef.editparts.ScalableFreeformRootEditPart#createScaledLayers() */ protected ScalableFreeformLayeredPane createScaledLayers() { ScalableFreeformLayeredPane layers = super.createScaledLayers(); layers.add(new FreeformLayer(), PRINT_PREVIEW_LAYER, 0); return layers; }
@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; }
/** * 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; }
/** * @deprecated Use {@link #getScalableFigure()} instead. Returns the pane. * @return the pane */ public ScalableFreeformLayeredPane getPane() { Assert.isTrue(pane instanceof ScalableFreeformLayeredPane); return (ScalableFreeformLayeredPane) pane; }
/** * @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; }