本文整理了Java中org.eclipse.swt.widgets.Table.getForeground()
方法的一些代码示例,展示了Table.getForeground()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.getForeground()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:getForeground
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
public Color getForeground () {
return table.getForeground();
}
@Override
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
public Color getForeground () {
return table.getForeground();
}
@Override
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
public Color getForeground () {
return table.getForeground();
}
@Override
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
@Override
public Color getForeground () {
return table.getForeground();
}
@Override
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
public Color getForeground () {
return table.getForeground();
}
public Font getFont () {
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
/**
* Returns the foreground color that the receiver will use to draw.
*
* @return the receiver's foreground color
*
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 2.0
*/
public Color getForeground () {
checkWidget ();
if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
return foreground != null ? foreground : parent.getForeground ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
Color _getForeground () {
int /*long*/ [] ptr = new int /*long*/ [1];
OS.gtk_tree_model_get (parent.modelHandle, handle, Table.FOREGROUND_COLUMN, ptr, -1);
if (ptr [0] == 0) return parent.getForeground ();
GdkColor gdkColor = new GdkColor ();
OS.memmove (gdkColor, ptr [0], GdkColor.sizeof);
OS.gdk_color_free (ptr [0]);
return Color.gtk_new (display, gdkColor);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
Color _getForeground () {
long /*int*/ [] ptr = new long /*int*/ [1];
OS.gtk_tree_model_get (parent.modelHandle, handle, Table.FOREGROUND_COLUMN, ptr, -1);
if (ptr [0] == 0) return parent.getForeground ();
GdkColor gdkColor = new GdkColor ();
OS.memmove (gdkColor, ptr [0], GdkColor.sizeof);
OS.gdk_color_free (ptr [0]);
return Color.gtk_new (display, gdkColor);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
Color _getForeground () {
int /*long*/ [] ptr = new int /*long*/ [1];
OS.gtk_tree_model_get (parent.modelHandle, handle, Table.FOREGROUND_COLUMN, ptr, -1);
if (ptr [0] == 0) return parent.getForeground ();
GdkColor gdkColor = new GdkColor ();
OS.memmove (gdkColor, ptr [0], GdkColor.sizeof);
OS.gdk_color_free (ptr [0]);
return Color.gtk_new (display, gdkColor);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
/**
* Returns the foreground color that the receiver will use to draw.
*
* @return the receiver's foreground color
*
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 2.0
*/
public Color getForeground () {
checkWidget ();
if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);
if (foreground == -1) return parent.getForeground ();
return Color.win32_new (display, foreground);
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
/**
* Returns the foreground color that the receiver will use to draw.
*
* @return the receiver's foreground color
*
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*/
public Color getForeground() {
checkWidget();
if( !parent.checkData( this, parent.indexOf( this ) ) ) {
error( SWT.ERROR_WIDGET_DISPOSED );
}
Color result;
if( foreground == null ) {
result = parent.getForeground();
} else {
result = foreground;
}
return result;
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
private Color computeDashLineColor() {
Color fg= fTable.getForeground();
int fGray= (int)(0.3*fg.getRed() + 0.59*fg.getGreen() + 0.11*fg.getBlue());
Color bg= fTable.getBackground();
int bGray= (int)(0.3*bg.getRed() + 0.59*bg.getGreen() + 0.11*bg.getBlue());
int gray= (int)((fGray + bGray) * 0.66);
return new Color(fDisplay, gray, gray, gray);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
private Color computeDashLineColor() {
Color fg= fTable.getForeground();
int fGray= (int)(0.3*fg.getRed() + 0.59*fg.getGreen() + 0.11*fg.getBlue());
Color bg= fTable.getBackground();
int bGray= (int)(0.3*bg.getRed() + 0.59*bg.getGreen() + 0.11*bg.getBlue());
int gray= (int)((fGray + bGray) * 0.66);
return new Color(fDisplay, gray, gray, gray);
}
代码示例来源:origin: org.eclipse/org.eclipse.ajdt.ui
private Color computeDashLineColor() {
Color fg= fTable.getForeground();
int fGray= (int)(0.3*fg.getRed() + 0.59*fg.getGreen() + 0.11*fg.getBlue());
Color bg= fTable.getBackground();
int bGray= (int)(0.3*bg.getRed() + 0.59*bg.getGreen() + 0.11*bg.getBlue());
int gray= (int)((fGray + bGray) * 0.66);
return new Color(fDisplay, gray, gray, gray);
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
private Color computeDashLineColor() {
Color fg= fTable.getForeground();
int fGray= (int)(0.3*fg.getRed() + 0.59*fg.getGreen() + 0.11*fg.getBlue());
Color bg= fTable.getBackground();
int bGray= (int)(0.3*bg.getRed() + 0.59*bg.getGreen() + 0.11*bg.getBlue());
int gray= (int)((fGray + bGray) * 0.66);
return new Color(fDisplay, gray, gray, gray);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench
boldStyle = new TextStyle(boldFont, null, null);
grayColor = resourceManager.createColor(ColorUtil.blend(table.getBackground().getRGB(),
table.getForeground().getRGB()));
} else {
boldStyle = null;
代码示例来源:origin: org.apache.uima/uimaj-ep-cas-editor
table.setLinesVisible(true);
final Color defaultForegroundColor = table.getForeground();
代码示例来源:origin: org.eclipse.egit/ui
Color fg = rawTable.getForeground();
Color bg = rawTable.getBackground();
RGB dimmedForegroundRgb = ColorUtil.blend(fg.getRGB(), bg.getRGB(), 60);
内容来源于网络,如有侵权,请联系作者删除!