Java Code Examples for org.eclipse.draw2d.ColorConstants#black()
The following examples show how to use
org.eclipse.draw2d.ColorConstants#black() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Legend.java From nebula with Eclipse Public License 2.0 | 5 votes |
@Override protected void outlineShape(Graphics graphics) { if (!isVisible() || !drawBorder) return; graphics.pushState(); if (!traceList.isEmpty()) { Color fg = traceList.get(0).getYAxis().getForegroundColor(); if (fg == null) fg = ColorConstants.black; graphics.setForegroundColor(fg); } super.outlineShape(graphics); graphics.popState(); }
Example 2
Source File: ModelPropertiesFigure.java From ermasterr with Apache License 2.0 | 5 votes |
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; } } }
Example 3
Source File: TableFigure.java From ermasterr with Apache License 2.0 | 5 votes |
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; } } }
Example 4
Source File: NoteFigure.java From ermasterr with Apache License 2.0 | 5 votes |
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; } } }
Example 5
Source File: ModelPropertiesFigure.java From erflute with Apache License 2.0 | 5 votes |
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; } } }
Example 6
Source File: TableFigure.java From erflute with Apache License 2.0 | 5 votes |
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; } } }
Example 7
Source File: WalkerNoteFigure.java From erflute with Apache License 2.0 | 5 votes |
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; } } }
Example 8
Source File: ModelPropertiesFigure.java From ermaster-b with Apache License 2.0 | 5 votes |
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; } } }
Example 9
Source File: TableFigure.java From ermaster-b with Apache License 2.0 | 5 votes |
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; } } }
Example 10
Source File: NoteFigure.java From ermaster-b with Apache License 2.0 | 5 votes |
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; } } }
Example 11
Source File: DefaultTimelineStyleProvider.java From nebula with Eclipse Public License 2.0 | 4 votes |
@Override public Color getBackgroundColor() { return ColorConstants.black; }
Example 12
Source File: CustomResizeHandle.java From bonita-studio with GNU General Public License v2.0 | 2 votes |
/** * Returns the color for the outside of the handle. * * @return the color for the border */ protected Color getBorderColor() { return ColorConstants.black; }