本文整理汇总了Java中org.eclipse.draw2d.ColorConstants.black方法的典型用法代码示例。如果您正苦于以下问题:Java ColorConstants.black方法的具体用法?Java ColorConstants.black怎么用?Java ColorConstants.black使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.draw2d.ColorConstants
的用法示例。
在下文中一共展示了ColorConstants.black方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getBorderColor
import org.eclipse.draw2d.ColorConstants; //导入方法依赖的package包/类
@Override
public Color getBorderColor(Object entity) {
if (entity instanceof PgSchema){
return ColorConstants.black;
}else{
return ColorConstants.lightGray;
}
}
示例2: getForegroundColour
import org.eclipse.draw2d.ColorConstants; //导入方法依赖的package包/类
@Override
public Color getForegroundColour(Object entity) {
if (entity instanceof PgSchema){
return ColorConstants.black;
}else{
return colorDBlue;
}
}
示例3: decideColor
import org.eclipse.draw2d.ColorConstants; //导入方法依赖的package包/类
private void decideColor(final int[] color) {
if (color != null) {
final int sum = color[0] + color[1] + color[2];
if (sum > 255) {
foregroundColor = ColorConstants.black;
} else {
foregroundColor = ColorConstants.white;
}
}
}
示例4: decideColor
import org.eclipse.draw2d.ColorConstants; //导入方法依赖的package包/类
private void decideColor(int[] color) {
if (color != null) {
int sum = color[0] + color[1] + color[2];
if (sum > 255) {
this.foregroundColor = ColorConstants.black;
} else {
this.foregroundColor = ColorConstants.white;
}
}
}
示例5: decideColor
import org.eclipse.draw2d.ColorConstants; //导入方法依赖的package包/类
private void decideColor(int[] color) {
if (color != null) {
final int sum = color[0] + color[1] + color[2];
if (sum > 255) {
this.foregroundColor = ColorConstants.black;
} else {
this.foregroundColor = ColorConstants.white;
}
}
}
示例6: getColor
import org.eclipse.draw2d.ColorConstants; //导入方法依赖的package包/类
@Override
public Color getColor(Object rel) {
return ColorConstants.black;
}
示例7: getForeground
import org.eclipse.draw2d.ColorConstants; //导入方法依赖的package包/类
@Override
public Color getForeground() {
if (getValue() == null)
return ColorConstants.lightGray;
return ColorConstants.black;
}
示例8: getForeground
import org.eclipse.draw2d.ColorConstants; //导入方法依赖的package包/类
@Override
public Color getForeground() {
return ColorConstants.black;
}
示例9: TemplateBorder
import org.eclipse.draw2d.ColorConstants; //导入方法依赖的package包/类
/**
*
* @param lineWidth
* width of the border
* @param lineStyle
* style of the border
* @param lineColor
* color of the border (if null is set to black)
*/
public TemplateBorder(Float lineWidth, LineStyleEnum lineStyle, RGB lineColor) {
this.lineStyle = lineStyle;
this.lineWidth = lineWidth;
if (lineColor != null)
this.color = SWTResourceManager.getColor(lineColor);
else
this.color = ColorConstants.black;
}