/** * Exchanges all the {@link CDockable}s on this area with the * elements of <code>grid</code>. * @param grid a grid containing some new {@link Dockable}s */ public void deploy( CGrid grid ){ station.dropTree( grid.toTree() ); }
private void setupGrid(CGrid grid, Map<SingleCDockable, ViewDockWindow> docks) { for (DockWindow dock : docks.values()) { DefaultSingleCDockable dockable = createSingleDock(dock); setupDefaultMinizedLocation(dockable, dock.getPosition()); DockPosition position = dock.getPosition(); int x = getPerspectiveX(position); int y = getPerspectiveY(position); int w = getPerspectiveW(position); int h = getPerspectiveH(position); grid.add(x, y, w, h, dockable); } }
frame.add(control.getContentArea()); CGrid grid = new CGrid(control); SingleCDockable legend = create( grid.add(0, 0, 1, 4, dockablePlugin); grid.add(1, 0, 2, 4, sld); grid.add(1, 0, 2, 4, legend); grid.add(1, 0, 2, 4, map); grid.add(1, 0, 2, 4, dataSource); grid.add(1, 0, 2, 4, vendorOption); grid.add(1, 0, 2, 4, symbol); grid.add(0, 4, 3, 1, console);
/** * Exchanges all the {@link CDockable}s on this area with the * elements of <code>grid</code>. * @param grid a grid containing some new {@link Dockable}s */ public void deploy( CGrid grid ){ station.dropTree( grid.toTree() ); }
/** * Exchanges all the {@link CDockable}s on the center panel by * the elements of <code>grid</code>. * @param grid a grid containing some new {@link Dockable}s */ public void deploy( CGrid grid ){ getCenter().dropTree( grid.toTree() ); }
/** * Exchanges all the {@link CDockable}s on the center panel by * the elements of <code>grid</code>. * @param grid a grid containing some new {@link Dockable}s */ public void deploy( CGrid grid ){ getCenter().dropTree( grid.toTree() ); }
/** * Exchanges all the {@link CDockable}s on this area with the * elements of <code>grid</code>. This method also calls * {@link CDockable#setWorkingArea(CStation)} for each * dockable in <code>grid</code>. * @param grid a grid containing some new {@link Dockable}s */ public void deploy( CGrid grid ){ DockableSplitDockTree tree = grid.toTree(); for( Dockable dockable : tree.getDockables() ){ if( dockable instanceof CommonDockable ){ CommonDockable cdock = (CommonDockable)dockable; cdock.getDockable().setWorkingArea( this ); } } getStation().dropTree( tree ); }
/** * Exchanges all the {@link CDockable}s on this area with the * elements of <code>grid</code>. This method also calls * {@link CDockable#setWorkingArea(CStation)} for each * dockable in <code>grid</code>. * @param grid a grid containing some new {@link Dockable}s */ public void deploy( CGrid grid ){ DockableSplitDockTree tree = grid.toTree(); for( Dockable dockable : tree.getDockables() ){ if( dockable instanceof CommonDockable ){ CommonDockable cdock = (CommonDockable)dockable; cdock.getDockable().setWorkingArea( this ); } } getStation().dropTree( tree ); }