本文整理匯總了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;
}