Java Code Examples for org.eclipse.draw2d.LayeredPane#add()
The following examples show how to use
org.eclipse.draw2d.LayeredPane#add() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CrosstabTableEditPart.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * Creates the top-most set of layers on the given layered pane. * * @param layeredPane * the parent for the created layers */ protected void createLayers( LayeredPane layeredPane ) { Figure figure = new FreeformLayer( ); figure.setOpaque( false ); layeredPane.add( figure, CELL_HANDLE_LAYER ); layeredPane.add( getPrintableLayers( ), PRINTABLE_LAYERS ); layeredPane.add( new FreeformLayer( ), HANDLE_LAYER ); layeredPane.add( new GuideLayer( ), GUIDE_LAYER ); }
Example 2
Source File: TableEditPart.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * Creates the top-most set of layers on the given layered pane. * * @param layeredPane * the parent for the created layers */ protected void createLayers( LayeredPane layeredPane ) { layeredPane.add( createGridLayer( ), GRID_LAYER ); layeredPane.add( getPrintableLayers( ), PRINTABLE_LAYERS ); layeredPane.add( new FreeformLayer( ), HANDLE_LAYER ); layeredPane.add( new GuideLayer( ), GUIDE_LAYER ); }
Example 3
Source File: ReportRootEditPart.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * @see FreeformGraphicalRootEditPart#createLayers(LayeredPane) */ 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 ); }
Example 4
Source File: ManualOverride.java From neoscada with Eclipse Public License 1.0 | 4 votes |
@Override public IFigure createMain () { final LayeredPane root = new LayeredPane (); final Layer figureLayer = new Layer (); figureLayer.setLayoutManager ( new FlowLayout () ); final ConnectionLayer connectionLayer = new ConnectionLayer (); connectionLayer.setAntialias ( SWT.ON ); final Figure figure = new Figure (); figureLayer.add ( figure ); final GridLayout gridLayout = new GridLayout ( 3, true ); gridLayout.horizontalSpacing = 50; gridLayout.verticalSpacing = 50; figure.setLayoutManager ( gridLayout ); final Figure rpvFigure = createRPV (); final Figure pvFigure = createPV (); final Figure rmvFigure = createRMV (); final Figure mvFigure = createMV (); final Figure rvFigure = createRV (); figure.add ( rpvFigure, new GridData ( GridData.CENTER, GridData.CENTER, true, true, 1, 1 ) ); figure.add ( pvFigure, new GridData ( GridData.CENTER, GridData.CENTER, true, true, 1, 2 ) ); figure.add ( rvFigure, new GridData ( GridData.CENTER, GridData.CENTER, true, true, 1, 3 ) ); figure.add ( rmvFigure, new GridData ( GridData.CENTER, GridData.CENTER, true, true, 1, 1 ) ); figure.add ( mvFigure, new GridData ( GridData.CENTER, GridData.CENTER, true, true, 1, 1 ) ); figure.add ( new Figure (), new GridData ( GridData.CENTER, GridData.CENTER, true, true, 1, 1 ) ); // placeholder connectionLayer.add ( this.p2rConnection = createConnection ( this.pvRect, this.rvRect ) ); connectionLayer.add ( this.m2rConnection = createConnection ( this.mvRect, this.rvRect ) ); connectionLayer.add ( this.rp2pConnection = createConnection ( this.rpvRect, this.pvRect ) ); connectionLayer.add ( this.rm2pConnection = createConnection ( this.rmvRect, this.pvRect ) ); root.add ( figureLayer ); root.add ( connectionLayer ); return root; }
Example 5
Source File: SCTRenderedDiagramRootEditPart.java From statecharts with Eclipse Public License 1.0 | 4 votes |
@Override protected void createLayers(LayeredPane layeredPane) { super.createLayers(layeredPane); layeredPane.add(new FreeformLayer(), WATERMARK_LAYER); }