Java Code Examples for org.eclipse.swt.printing.Printer#getSystemColor()
The following examples show how to use
org.eclipse.swt.printing.Printer#getSystemColor() .
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: RiskRenderer.java From translationstudio8 with GNU General Public License v2.0 | 6 votes |
public RiskRenderer(Printer printer) { super(printer); if (printer != null) { _yellow = printer.getSystemColor(SWT.COLOR_YELLOW); _green = printer.getSystemColor(SWT.COLOR_GREEN); _red = printer.getSystemColor(SWT.COLOR_RED); _black = printer.getSystemColor(SWT.COLOR_BLACK); _redInactive = new Color(printer, INACTIVE_RED); _yellowInactive = new Color(printer, INACTIVE_YELLOW); _greenInactive = new Color(printer, INACTIVE_GREEN); } Color[][] inactiveColors = { { _yellowInactive, _redInactive, _redInactive }, { _greenInactive, _yellowInactive, _redInactive }, { _greenInactive, _greenInactive, _yellowInactive } }; _inactiveColors = inactiveColors; Color[][] colors = { { _yellow, _red, _red }, { _green, _yellow, _red }, { _green, _green, _yellow } }; _colors = colors; }
Example 2
Source File: RiskRenderer.java From tmxeditor8 with GNU General Public License v2.0 | 6 votes |
public RiskRenderer(Printer printer) { super(printer); if (printer != null) { _yellow = printer.getSystemColor(SWT.COLOR_YELLOW); _green = printer.getSystemColor(SWT.COLOR_GREEN); _red = printer.getSystemColor(SWT.COLOR_RED); _black = printer.getSystemColor(SWT.COLOR_BLACK); _redInactive = new Color(printer, INACTIVE_RED); _yellowInactive = new Color(printer, INACTIVE_YELLOW); _greenInactive = new Color(printer, INACTIVE_GREEN); } Color[][] inactiveColors = { { _yellowInactive, _redInactive, _redInactive }, { _greenInactive, _yellowInactive, _redInactive }, { _greenInactive, _greenInactive, _yellowInactive } }; _inactiveColors = inactiveColors; Color[][] colors = { { _yellow, _red, _red }, { _green, _yellow, _red }, { _green, _green, _yellow } }; _colors = colors; }
Example 3
Source File: BarCellRenderer.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
/** * Constructor for BarCellRenderer. * * @param printer Printer or <code>null</code> */ public BarCellRenderer(Printer printer) { super(printer); if (printer != null) { _barColor = printer.getSystemColor(SWT.COLOR_DARK_RED); } }
Example 4
Source File: SmileyCellRenderer.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
public SmileyCellRenderer(Printer printer) { super(printer); if (printer != null) { _neutral = printer.getSystemColor(SWT.COLOR_YELLOW); _positive = printer.getSystemColor(SWT.COLOR_GREEN); _negative = printer.getSystemColor(SWT.COLOR_RED); _black = printer.getSystemColor(SWT.COLOR_BLACK); } }
Example 5
Source File: BarCellRenderer.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
/** * Constructor for BarCellRenderer. * * @param printer Printer or <code>null</code> */ public BarCellRenderer(Printer printer) { super(printer); if (printer != null) { _barColor = printer.getSystemColor(SWT.COLOR_DARK_RED); } }
Example 6
Source File: SmileyCellRenderer.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
public SmileyCellRenderer(Printer printer) { super(printer); if (printer != null) { _neutral = printer.getSystemColor(SWT.COLOR_YELLOW); _positive = printer.getSystemColor(SWT.COLOR_GREEN); _negative = printer.getSystemColor(SWT.COLOR_RED); _black = printer.getSystemColor(SWT.COLOR_BLACK); } }