/** * Sets the optional background image to be rendered behind the title * starting at the position 0,0. * * @param backgroundImage * The backgroundImage to set. */ @Override public void setBackgroundImage(Image backgroundImage) { content.setBackgroundImage(backgroundImage); }
private void dynamicCreatePartControl(Composite container) { // Create single toolkit instance, which is disposed of on dispose of // intro part. also define background of all presentation. toolkit = new FormToolkit(container.getDisplay()); // Define presentation title color Color bg = sharedStyleManager.getColor(toolkit, "bg"); //$NON-NLS-1$ if (bg != null) { toolkit.setBackground(bg); } toolkit.getHyperlinkGroup().setHyperlinkUnderlineMode( HyperlinkSettings.UNDERLINE_HOVER); // Define presentation title color and image. Form mainForm = toolkit.createForm(container); Color fg = sharedStyleManager.getColor(toolkit, "title.fg"); //$NON-NLS-1$ if (fg != null) mainForm.setForeground(fg); Image bgImage = sharedStyleManager.getImage("title.image", null, null); //$NON-NLS-1$ if (bgImage != null) { mainForm.setBackgroundImage(bgImage); String repeat = sharedStyleManager .getProperty("title.image.repeat"); //$NON-NLS-1$ if (repeat != null && repeat.equalsIgnoreCase("true")) //$NON-NLS-1$ mainForm.setBackgroundImageTiled(true); } mainPageBook = createMainPageBook(toolkit, mainForm); // Add this presentation as a listener to model. getModel().addPropertyListener(this); addToolBarActions(); }
/** * Sets the optional background image to be rendered behind the title * starting at the position 0,0. * * @param backgroundImage * The backgroundImage to set. */ @Override public void setBackgroundImage(Image backgroundImage) { content.setBackgroundImage(backgroundImage); }