org.eclipse.swt.widgets.Button.getBackground()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中org.eclipse.swt.widgets.Button.getBackground()方法的一些代码示例,展示了Button.getBackground()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.getBackground()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Button
类名称:Button
方法名:getBackground

Button.getBackground介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface

fButton.setForeground( fButton.getBackground() );
fButton.setText( "\u2588\u2588\u2588" ); //$NON-NLS-1$

代码示例来源:origin: BiglySoftware/BiglyBT

imgOpenFolder.setBackground(browse.getBackground());
Utils.setTT(browse,MessageText.getString("ConfigView.button.browse"));

代码示例来源:origin: BiglySoftware/BiglyBT

GC gc = new GC(img);
Color color = iconChooser.getBackground();
gc.setBackground(color);
gc.fillRectangle(0,0,16,10);

代码示例来源:origin: BiglySoftware/BiglyBT

imgOpenFolder.setBackground(noti_browse.getBackground());

代码示例来源:origin: BiglySoftware/BiglyBT

imgOpenFolder.setBackground(browse3.getBackground());
Utils.setTT(browse3,MessageText.getString("ConfigView.button.browse"));
imgOpenFolder.setBackground(browse4.getBackground());
Utils.setTT(browse4,MessageText.getString("ConfigView.button.browse"));

代码示例来源:origin: BiglySoftware/BiglyBT

imgOpenFolder.setBackground(browse2.getBackground());
Utils.setTT(browse2,MessageText.getString("ConfigView.button.browse"));
  imgOpenFolder.setBackground(browse4.getBackground());
  Utils.setTT(browse4,MessageText.getString("ConfigView.button.browse"));

代码示例来源:origin: BiglySoftware/BiglyBT

imgOpenFolder.setBackground(d_browse.getBackground());

代码示例来源:origin: BiglySoftware/BiglyBT

imgOpenFolder.setBackground(browse.getBackground());

代码示例来源:origin: BiglySoftware/BiglyBT

imgOpenFolder.setBackground(browse.getBackground());
Utils.setTT(browse,MessageText.getString("ConfigView.button.browse"));

代码示例来源:origin: BiglySoftware/BiglyBT

imgOpenFolder.setBackground(browse.getBackground());
Utils.setTT(browse,MessageText.getString("ConfigView.button.browse"));

代码示例来源:origin: BiglySoftware/BiglyBT

Button browse = new Button(cArea, SWT.PUSH);
browse.setImage(imgOpenFolder);
imgOpenFolder.setBackground(browse.getBackground());
Utils.setTT(browse,MessageText.getString("ConfigView.button.browse"));
browse.addListener(SWT.Selection, new Listener() {

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

fImage = new Image(parent.getDisplay(), fExtent.x, fExtent.y);
GC gc = new GC(fImage);
gc.setBackground(fButton.getBackground());
gc.fillRectangle(0, 0, fExtent.x, fExtent.y);
gc.dispose();

代码示例来源:origin: BiglySoftware/BiglyBT

Button browse = new Button(gSnap, SWT.PUSH);
browse.setImage(imgOpenFolder);
imgOpenFolder.setBackground(browse.getBackground());
Utils.setTT(browse,MessageText.getString("ConfigView.button.browse"));
controls[2] = browse;

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

fImage = new Image(parent.getDisplay(), fExtent.x, fExtent.y);
GC gc = new GC(fImage);
gc.setBackground(fButton.getBackground());
gc.fillRectangle(0, 0, fExtent.x, fExtent.y);
gc.dispose();

代码示例来源:origin: BiglySoftware/BiglyBT

imgOpenFolder.setBackground(browse.getBackground());

代码示例来源:origin: BiglySoftware/BiglyBT

private void updateButtonColor(final Display display, final int rV, final int gV, final int bV) {
 Image oldImg = img;
 img = new Image(display,25,10);
 GC gc = new GC(img);
 if ( r >= 0 && g >= 0 && b >= 0 ){
   Color color = ColorCache.getColor(display, rV, gV, bV);
   gc.setBackground(color);
     gc.fillRectangle(0,0,25,10);
  }else{
   Color color = colorChooser.getBackground();
   gc.setBackground(color);
     gc.fillRectangle(0,0,25,10);
     new GCStringPrinter( gc, "-", new Rectangle( 0, 0, 25, 10 ), 0, SWT.CENTER ).printString();
 }
 gc.dispose();
 colorChooser.setImage(img);
 if(oldImg != null && ! oldImg.isDisposed())
  oldImg.dispose();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.tips.ui

private void paintButton(GC gc, Composite providerButton, TipProvider provider) {
  gc.setAdvanced(true);
  if (!gc.getAdvanced()) {
    throw new RuntimeException(Messages.Slider_13);
  }
  if (provider.equals(fSelectedProvider)) {
    gc.setForeground(getDisplay().getSystemColor(SWT.COLOR_LIST_SELECTION_TEXT));
    gc.setBackground(getDisplay().getSystemColor(SWT.COLOR_LIST_SELECTION));
    gc.drawRectangle(0, 0, fIconSize + 3, fIconSize + 3);
  } else {
    gc.setForeground(fLeftButton.getForeground());
    gc.setBackground(fLeftButton.getBackground());
    boolean mouseIn = getDisplay().getCursorControl() == providerButton;
    if (mouseIn) {
      gc.drawRectangle(0, 0, fIconSize + 3, fIconSize + 3);
    } else {
      gc.setBackground(fScroller.getBackground());
    }
  }
  gc.fillRectangle(2, 2, fIconSize, fIconSize);
  Image overlay = getUnreadOverlay(providerButton, provider);
  gc.drawImage(overlay, 2, 2);
  if (overlay != getProviderImage(provider, selectProviderImage(provider))) {
    overlay.dispose();
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

image2 = new Image (display, rect.width, rect.height);
GC gc = new GC (image2);
gc.setBackground (getBackground ());
gc.fillRectangle (rect);
gc.drawImage (image, 0, 0);

相关文章

Button类方法