gc.dispose(); composite.setBackgroundImage(imageGradient);
@Override void setBackgroundImage (int /*long*/ hBitmap) { super.setBackgroundImage (hBitmap); OS.InvalidateRect (hwndText, null, true); }
@Override void setBackgroundImage (int /*long*/ hBitmap) { super.setBackgroundImage (hBitmap); setBackgroundTransparent (hBitmap != 0); }
void dispose() { cleanUp(); if (backgroundImage != null) { comp.setBackgroundImage(null); backgroundImage.dispose(); backgroundImage = null; } }
public void setBackgroundImage(Image image) { super.setBackgroundImage(image); renderer.createAntialiasColors(); //TODO: need better caching strategy redraw(); } /**
@Override public void setBackgroundImage(Image image) { super.setBackgroundImage(image); renderer.createAntialiasColors(); //TODO: need better caching strategy redraw(); } /**
@Override public void setBackgroundImage(Image image) { super.setBackgroundImage(image); renderer.createAntialiasColors(); //TODO: need better caching strategy redraw(); } /**
@Override public void setBackgroundImage(Image image) { super.setBackgroundImage(image); renderer.createAntialiasColors(); //TODO: need better caching strategy redraw(); } /**
@Override public void setBackgroundImage(Image image) { super.setBackgroundImage(image); renderer.createAntialiasColors(); //TODO: need better caching strategy redraw(); } /**
@Override public void handleEvent(Event event) { int height= fContainer.getClientArea().height; if (fGradientBackground == null || fGradientBackground.getBounds().height != height) { Image image= height == 0 ? null : createGradientImage(height, event.display); fContainer.setBackgroundImage(image); if (fGradientBackground != null) fGradientBackground.dispose(); fGradientBackground= image; } } });
@Override void setBackgroundImage (int /*long*/ hBitmap) { super.setBackgroundImage (hBitmap); int /*long*/ hwndText = OS.GetDlgItem (handle, CBID_EDIT); if (hwndText != 0) OS.InvalidateRect (hwndText, null, true); int /*long*/ hwndList = OS.GetDlgItem (handle, CBID_LIST); if (hwndList != 0) OS.InvalidateRect (hwndList, null, true); }
@Override void setBackgroundImage (int /*long*/ hBitmap) { super.setBackgroundImage (hBitmap); if (hBitmap != 0) { setBackgroundTransparent (true); } else { if (!hooks (SWT.MeasureItem) && !hooks (SWT.EraseItem) && !hooks (SWT.PaintItem)) { setBackgroundTransparent (false); } } }
@Override void setBackgroundImage (int /*long*/ hBitmap) { super.setBackgroundImage (hBitmap); if (hBitmap != 0) {
header.setBackgroundImage(imageLoader.getImage("wizard_header_bg")); Label topSeparator = new Label(shell,SWT.SEPARATOR |SWT.HORIZONTAL); Composite main = new Composite(shell, SWT.NONE);
header.setBackgroundImage(imageLoader.getImage("wizard_header_bg")); Label topSeparator = new Label(shell,SWT.SEPARATOR |SWT.HORIZONTAL); main = new Composite(shell, SWT.NONE);
private void updateBackgroundImage() { FormToolkit toolkit = helpPart.getForm().getToolkit(); FormColors colors = toolkit.getColors(); Rectangle carea = container.getClientArea(); Image oldImage = bgImage; if (bgImage!=null) { Rectangle ibounds = bgImage.getBounds(); if (carea.height==ibounds.height) return; } bgImage = new Image(container.getDisplay(), 1, carea.height); GC gc = new GC(bgImage); gc.setBackground(colors.getColor(IFormColors.H_GRADIENT_END)); gc.setForeground(colors.getColor(IFormColors.H_GRADIENT_START)); gc.fillGradientRectangle(0, 0, 1, carea.height, true); gc.setForeground(colors.getColor(IFormColors.H_BOTTOM_KEYLINE2)); gc.drawLine(0, 0, 1, 0); gc.setForeground(colors.getColor(IFormColors.H_BOTTOM_KEYLINE1)); gc.drawLine(0, 1, 1, 1); gc.dispose(); container.setBackgroundImage(bgImage); if (oldImage != null && !oldImage.isDisposed()) { oldImage.dispose(); } }
gc.drawPolyline(line2); gc.dispose(); comp.setBackgroundImage(backgroundImage); if (oldBackgroundImage != null) oldBackgroundImage.dispose();