private ArrayList<ElementLayout> createDefaultFooterBarElements( ABrickLayoutConfiguration layoutTemplate) { ArrayList<ElementLayout> footerBarElements = new ArrayList<ElementLayout>(); GLBrick brick = layoutTemplate.getBrick(); ElementLayout fuelBarLayout = new ElementLayout("fuelBarLayout"); fuelBarLayout.setFrameColor(0, 1, 0, 0); fuelBarLayout.setPixelSizeY(FUELBAR_HEIGHT_PIXELS); fuelBarLayout.setRenderer(new FuelBarRenderer(brick)); footerBarElements.add(fuelBarLayout); return footerBarElements; }
protected ArrayList<ElementLayout> createToolBarElements( ABrickLayoutConfiguration layoutTemplate) { final GLBrick brick = layoutTemplate.getBrick(); MultiFormViewSwitchingBar viewSwitchingBar = brick.getViewSwitchingBar(); ArrayList<ElementLayout> toolBarElements = new ArrayList<ElementLayout>(); toolBarElements.add(viewSwitchingBar); ElementLayout ratioSpacingLayoutX = new ElementLayout("ratioSpacingLayoutX"); ratioSpacingLayoutX.setRatioSizeX(1); ratioSpacingLayoutX.setGrabX(true); ratioSpacingLayoutX.setRatioSizeY(0); toolBarElements.add(ratioSpacingLayoutX); return toolBarElements; }
private ArrayList<ElementLayout> createSummaryFooterBarElements( ABrickLayoutConfiguration layoutTemplate) { ArrayList<ElementLayout> footerBarElements = new ArrayList<ElementLayout>(); GLBrick brick = layoutTemplate.getBrick(); ElementLayout dimensionBarLaylout = new ElementLayout("dimensionBar"); dimensionBarLaylout.setPixelSizeY(DIMENSION_BAR_HEIGHT_PIXELS); dimensionBarLaylout.setRatioSizeX(1); dimensionBarLaylout.setRenderer( new DimensionBarRenderer( brick.getDataDomain().getTable().getDefaultDimensionPerspective(true).getVirtualArray(), brick.getTablePerspective().getDimensionPerspective().getVirtualArray())); footerBarElements.add(dimensionBarLaylout); return footerBarElements; }