首页 > 代码库 > rcp perspective 添加9个视图均匀排列
rcp perspective 添加9个视图均匀排列
PageLayout布局方法
pageLayout.addView("NodePMTSStream" + ":1", IPageLayout.TOP, 0.5f,
editorArea);
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);
pageLayout.addView("NodePMTSStream" + ":2", IPageLayout.RIGHT,
0.33f, "NodePMTSStream" + ":1");
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);
pageLayout.addView("NodePMTSStream" + ":3", IPageLayout.RIGHT,
0.5f, "NodePMTSStream" + ":2");
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);
pageLayout.addView("NodePMTSStream" + ":4", IPageLayout.BOTTOM,
0.33f, "NodePMTSStream" + ":1");
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);
pageLayout.addView("NodePMTSStream" + ":5", IPageLayout.BOTTOM,
0.33f, "NodePMTSStream" + ":2");
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);
pageLayout.addView("NodePMTSStream" + ":6", IPageLayout.BOTTOM,
0.33f, "NodePMTSStream" + ":3");
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);
pageLayout.addView("NodePMTSStream" + ":7", IPageLayout.BOTTOM,
0.5f, "NodePMTSStream" + ":4");
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);
pageLayout.addView("NodePMTSStream" + ":8", IPageLayout.BOTTOM,
0.5f, "NodePMTSStream" + ":5");
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);
pageLayout.addView("NodePMTSStream" + ":9", IPageLayout.BOTTOM,
0.5f, "NodePMTSStream" + ":6");
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);