org.eclipse.swt.graphics.GC.setForegroundPattern()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(122)

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

GC.setForegroundPattern介绍

[英]Sets the foreground pattern. The default value is null.

This operation requires the operating system's advanced graphics subsystem which may not be available on some platforms.
[中]

代码示例

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

setBackgroundPattern(null);
setClipping((Rectangle)null);
setForegroundPattern(null);
setInterpolation(SWT.DEFAULT);
setTextAntialias(SWT.DEFAULT);

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

} else if (fontForeground.getBgImage() != null) {
  pattern = new Pattern(device, fontForeground.getBgImage());
  gc.setForegroundPattern(pattern);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

setBackgroundPattern(null);
setClipping(0);
setForegroundPattern(null);
setInterpolation(SWT.DEFAULT);
setTextAntialias(SWT.DEFAULT);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

setBackgroundPattern(null);
setClipping(0);
setForegroundPattern(null);
setInterpolation(SWT.DEFAULT);
setTextAntialias(SWT.DEFAULT);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

setBackgroundPattern(null);
setClipping(0);
setForegroundPattern(null);
setInterpolation(SWT.DEFAULT);
setTextAntialias(SWT.DEFAULT);

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

event.gc.setForegroundPattern(pattern);
event.gc.setForegroundPattern(null);
pattern.dispose();

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

} else if (foreground.getBgImage() != null) {
  pattern = new Pattern(device, foreground.getBgImage());
  gc.setForegroundPattern(pattern);

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

} else if (shapeColor.getBgImage() != null) {
  pattern = new Pattern(device, shapeColor.getBgImage());
  gc.setForegroundPattern(pattern);

代码示例来源:origin: org.eclipse.e4.ui.workbench.renderers/swt

bounds.height + 1, gradientLineTop, gc.getDevice()
        .getSystemColor(SWT.COLOR_WHITE));
gc.setForegroundPattern(foregroundPattern);

代码示例来源:origin: org.eclipse.platform/org.eclipse.e4.ui.workbench.renderers.swt

foregroundPattern = new Pattern(gc.getDevice(), 0, 0, 0, bounds.height + 1, gradientLineTop,
    gc.getDevice().getSystemColor(SWT.COLOR_WHITE));
gc.setForegroundPattern(foregroundPattern);

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

} else if (foreground.getBgImage() != null) {
  pattern = new Pattern(device, foreground.getBgImage());
  gc.setForegroundPattern(pattern);

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

} else if (lineColor.getBgImage() != null) {
  pattern = new Pattern(device, lineColor.getBgImage());
  gc.setForegroundPattern(pattern);

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

gc.setAntialias (oldAntialias);
gc.setBackgroundPattern (oldBackgroundPattern);
gc.setForegroundPattern (oldForegroundPattern);
gc.setInterpolation (oldInterpolation);
gc.setTextAntialias (oldTextAntialias);
gc.setBackgroundPattern (oldBackgroundPattern);
gc.setClipping (cellBounds);
gc.setForegroundPattern (oldForegroundPattern);
gc.setInterpolation (oldInterpolation);
gc.setTextAntialias (oldTextAntialias);
gc.setBackgroundPattern (oldBackgroundPattern);
gc.setClipping (cellBounds);
gc.setForegroundPattern (oldForegroundPattern);
gc.setInterpolation (oldInterpolation);
gc.setTextAntialias (oldTextAntialias);

相关文章

GC类方法