本文整理了Java中org.eclipse.swt.graphics.Color.getDevice()
方法的一些代码示例,展示了Color.getDevice()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Color.getDevice()
方法的具体详情如下:
包路径:org.eclipse.swt.graphics.Color
类名称:Color
方法名:getDevice
暂无
代码示例来源:origin: pentaho/pentaho-kettle
Color tabColor = new Color( c.getDevice(), c.getRed(), c.getGreen(), c.getBlue() );
tabFolder.setSelectionBackground( tabColor );
break;
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface
@Override
public Color createColor(Device device) {
// If this descriptor is wrapping an existing color, then we can return the original color
// if this is the same device.
if (originalColor != null) {
// If we're allocating on the same device as the original color, return the original.
if (originalColor.getDevice() == device) {
return originalColor;
}
}
return new Color(device, color);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface
@Override
public Color createColor(Device device) {
// If this descriptor is wrapping an existing color, then we can return the original color
// if this is the same device.
if (originalColor != null) {
// If we're allocating on the same device as the original color, return the original.
if (originalColor.getDevice() == device) {
return originalColor;
}
}
return new Color(device, color);
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface
public Color createColor(Device device) {
// If this descriptor is wrapping an existing color, then we can return the original color
// if this is the same device.
if (originalColor != null) {
// If we're allocating on the same device as the original color, return the original.
if (originalColor.getDevice() == device) {
return originalColor;
}
}
return new Color(device, color);
}
代码示例来源:origin: ystrot/glance
public static Color lighten(Color color, int delta) {
int r = ensureColor(color.getRed() + delta);
int g = ensureColor(color.getGreen() + delta);
int b = ensureColor(color.getBlue() + delta);
return new Color(color.getDevice(), r, g, b);
}
内容来源于网络,如有侵权,请联系作者删除!