Codota Logo
Composite.setBackgroundImage
Code IndexAdd Codota to your IDE (free)

How to use
setBackgroundImage
method
in
org.eclipse.swt.widgets.Composite

Best Java code snippets using org.eclipse.swt.widgets.Composite.setBackgroundImage (Showing top 17 results out of 315)

  • Common ways to obtain Composite
private void myMethod () {
Composite c =
  • Codota IconControl control;control.getParent()
  • Codota IconStatusDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Codota IconTitleAreaDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Smart code suggestions by Codota
}
origin: stackoverflow.com

  gc.dispose();
composite.setBackgroundImage(imageGradient);
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
void setBackgroundImage (int /*long*/ hBitmap) {
  super.setBackgroundImage (hBitmap);
  OS.InvalidateRect (hwndText, null, true);
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
void setBackgroundImage (int /*long*/ hBitmap) {
  super.setBackgroundImage (hBitmap);
  setBackgroundTransparent (hBitmap != 0);
}

origin: org.eclipse.platform/org.eclipse.ui.workbench

void dispose() {
  cleanUp();
  if (backgroundImage != null) {
    comp.setBackgroundImage(null);
    backgroundImage.dispose();
    backgroundImage = null;
  }
}
origin: org.eclipse.swt.cocoa.macosx/x86_64

public void setBackgroundImage(Image image) {
    super.setBackgroundImage(image);
    renderer.createAntialiasColors(); //TODO: need better caching strategy
    redraw();
}
/**
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
public void setBackgroundImage(Image image) {
    super.setBackgroundImage(image);
    renderer.createAntialiasColors(); //TODO: need better caching strategy
    redraw();
}
/**
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
public void setBackgroundImage(Image image) {
    super.setBackgroundImage(image);
    renderer.createAntialiasColors(); //TODO: need better caching strategy
    redraw();
}
/**
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
public void setBackgroundImage(Image image) {
    super.setBackgroundImage(image);
    renderer.createAntialiasColors(); //TODO: need better caching strategy
    redraw();
}
/**
origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
public void setBackgroundImage(Image image) {
    super.setBackgroundImage(image);
    renderer.createAntialiasColors(); //TODO: need better caching strategy
    redraw();
}
/**
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

  @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;
    }
  }
});
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@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);
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@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);
    }
  }
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
void setBackgroundImage (int /*long*/ hBitmap) {
  super.setBackgroundImage (hBitmap);
  if (hBitmap != 0) {
origin: BiglySoftware/BiglyBT

header.setBackgroundImage(imageLoader.getImage("wizard_header_bg"));
Label topSeparator = new Label(shell,SWT.SEPARATOR |SWT.HORIZONTAL);
Composite main = new Composite(shell, SWT.NONE);
origin: BiglySoftware/BiglyBT

header.setBackgroundImage(imageLoader.getImage("wizard_header_bg"));
Label topSeparator = new Label(shell,SWT.SEPARATOR |SWT.HORIZONTAL);
main = new Composite(shell, SWT.NONE);
origin: org.eclipse/org.eclipse.help.ui

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();
  }
}

origin: org.eclipse.platform/org.eclipse.ui.workbench

gc.drawPolyline(line2);
gc.dispose();
comp.setBackgroundImage(backgroundImage);
if (oldBackgroundImage != null)
  oldBackgroundImage.dispose();
org.eclipse.swt.widgetsCompositesetBackgroundImage

Popular methods of Composite

  • setLayout
    Sets the layout which is associated with the receiver to be the argument which may be null.
  • <init>
    Constructs a new instance of this class given its parent and a style value describing its behavior a
  • setLayoutData
  • layout
    Forces a lay out (that is, sets the size and location) of all widgets that are in the parent hierarc
  • getDisplay
  • getChildren
    Returns a (possibly empty) array containing the receiver's children. Children are returned in the or
  • getShell
  • getFont
  • getLayout
    Returns layout which is associated with the receiver, or null if one has not been set.
  • setFont
  • getParent
  • computeSize
  • getParent,
  • computeSize,
  • dispose,
  • setBackground,
  • getClientArea,
  • isDisposed,
  • getBackground,
  • setVisible,
  • setSize,
  • setData

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now