Modifier and Type | Method and Description |
---|---|
static Color |
Graphics.getColor(int red,
int green,
int blue)
Deprecated.
Factory created resources are obsolete and will be removed in a future release. Use
the constructor
Color(Device, int, int, int) instead. |
static Color |
Graphics.getColor(RGB rgb)
Deprecated.
Factory created resources are obsolete and will be removed in a future release. Use
the constructor
Color(Device, RGB) instead. |
Modifier and Type | Method and Description |
---|---|
static void |
WidgetLCAUtil.preserveBackground(Widget widget,
Color background)
Deprecated.
Preserves the value of the property
background of the
specified widget. |
static void |
WidgetLCAUtil.preserveBackground(Widget widget,
Color background,
boolean transparency)
Deprecated.
Preserves the value of the property
background of the
specified widget. |
static void |
WidgetLCAUtil.preserveForeground(Widget widget,
Color foreground)
Deprecated.
Preserves the value of the property
foreground of the
specified widget. |
static void |
WidgetLCAUtil.renderBackground(Widget widget,
Color newColor)
Deprecated.
Determines whether the property
background of the given
widget has changed during the processing of the current request and if so,
writes a protocol message to the response that updates the client-side
background property of the specified widget. |
static void |
WidgetLCAUtil.renderBackground(Widget widget,
Color background,
boolean transparency)
Deprecated.
Determines whether the property
background of the given
widget has changed during the processing of the current request and if so,
writes a protocol message to the response that updates the client-side
background property of the specified widget. |
static void |
WidgetLCAUtil.renderForeground(Widget widget,
Color newColor)
Deprecated.
Determines whether the property
foreground of the given
widget has changed during the processing of the current request and if so,
writes a protocol message to the response that updates the client-side
foreground property of the specified widget. |
static void |
WidgetLCAUtil.renderProperty(Widget widget,
java.lang.String property,
Color[] newValue,
Color[] defaultValue)
Deprecated.
Determines whether the property of the given widget has changed during the processing of the
current request and if so, writes a protocol message to the response that updates the
client-side property of the specified widget.
|
static void |
WidgetLCAUtil.renderProperty(Widget widget,
java.lang.String property,
Color[] newValue,
Color[] defaultValue)
Deprecated.
Determines whether the property of the given widget has changed during the processing of the
current request and if so, writes a protocol message to the response that updates the
client-side property of the specified widget.
|
static void |
WidgetLCAUtil.renderProperty(Widget widget,
java.lang.String property,
Color newValue,
Color defaultValue)
Deprecated.
Determines whether the property of the given widget has changed during the processing of the
current request and if so, writes a protocol message to the response that updates the
client-side property of the specified widget.
|
Modifier and Type | Method and Description |
---|---|
static JsonValue |
JsonMapping.toJson(Color color)
Returns the JSON representation for the given Color.
|
static JsonValue |
JsonMapping.toJson(Color color,
int alpha)
Returns the JSON representation for the given Color with an additional alpha (opacity) value.
|
Modifier and Type | Method and Description |
---|---|
T |
Cell.setBackground(Color color)
Sets the background color for this cell.
|
T |
Cell.setForeground(Color color)
Sets the foreground color for this cell.
|
Modifier and Type | Method and Description |
---|---|
Color |
ControlThemeAdapter.getBackground(Control control)
Returns the default background color that the specified control will use if
no user-defined background color has been set using
Control.setBackground(Color) . |
Color |
ControlThemeAdapter.getForeground(Control control)
Returns the default foreground color that the specified control will use to
draw if no user defined foreground color has been set using
Control.setForeground(Color) . |
Modifier and Type | Method and Description |
---|---|
Color |
CTabFolder.getSelectionBackground()
Returns the receiver's selection background color.
|
Color |
CTabFolder.getSelectionForeground()
Returns the receiver's selection foreground color.
|
Modifier and Type | Method and Description |
---|---|
void |
CLabel.setBackground(Color color) |
void |
SashForm.setBackground(Color color) |
void |
CLabel.setBackground(Color[] colors,
int[] percents)
Specify a gradient of colours to be drawn in the background of the CLabel.
|
void |
CLabel.setBackground(Color[] colors,
int[] percents,
boolean vertical)
Specify a gradient of colours to be drawn in the background of the CLabel.
|
void |
SashForm.setForeground(Color color) |
void |
CTabFolder.setSelectionBackground(Color color)
Sets the receiver's selection background color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
void |
CTabFolder.setSelectionBackground(Color[] colors,
int[] percents)
Specify a gradient of colours to be draw in the background of the selected tab.
|
void |
CTabFolder.setSelectionBackground(Color[] colors,
int[] percents,
boolean vertical)
Specify a gradient of colours to be draw in the background of the selected tab.
|
void |
CTabFolder.setSelectionForeground(Color color)
Set the foreground color of the selected tab.
|
Modifier and Type | Method and Description |
---|---|
Color |
GC.getBackground()
Returns the background color.
|
Color |
Image.getBackground()
Returns the color to which to map the transparent pixel, or null if
the receiver has no transparent pixel.
|
Color |
GC.getForeground()
Returns the receiver's foreground color.
|
Color |
Device.getSystemColor(int id)
Returns the matching standard color for the given
constant, which should be one of the color constants
specified in class
SWT . |
Modifier and Type | Method and Description |
---|---|
void |
GC.setBackground(Color color)
Sets the background color.
|
void |
Image.setBackground(Color color)
Sets the color to which to map the transparent pixel.
|
void |
GC.setForeground(Color color)
Sets the foreground color.
|
Modifier and Type | Method and Description |
---|---|
Color |
Control.getBackground()
Returns the receiver's background color.
|
Color |
TableItem.getBackground()
Returns the receiver's background color.
|
Color |
TreeItem.getBackground()
Returns the receiver's background color.
|
Color |
TableItem.getBackground(int index)
Returns the background color at the given column index in the receiver.
|
Color |
TreeItem.getBackground(int index)
Returns the background color at the given column index in the receiver.
|
Color |
Control.getForeground()
Returns the foreground color that the receiver will use to draw.
|
Color |
TableItem.getForeground()
Returns the foreground color that the receiver will use to draw.
|
Color |
TreeItem.getForeground()
Returns the foreground color that the receiver will use to draw.
|
Color |
TableItem.getForeground(int index)
Returns the foreground color at the given column index in the receiver.
|
Color |
TreeItem.getForeground(int index)
Returns the foreground color at the given column index in the receiver.
|
Color |
Display.getSystemColor(int id) |
Modifier and Type | Method and Description |
---|---|
void |
Control.setBackground(Color color)
Sets the receiver's background color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
void |
TableItem.setBackground(Color color)
Sets the receiver's background color to the color specified
by the argument, or to the default system color for the item
if the argument is null.
|
void |
TreeItem.setBackground(Color value)
Sets the receiver's background color to the color specified by the
argument, or to the default system color for the item if the argument is
null.
|
void |
TableItem.setBackground(int index,
Color color)
Sets the background color at the given column index in the receiver
to the color specified by the argument, or to the default system color for the item
if the argument is null.
|
void |
TreeItem.setBackground(int index,
Color color)
Sets the background color at the given column index in the receiver to the
color specified by the argument, or to the default system color for the
item if the argument is null.
|
void |
Control.setForeground(Color color)
Sets the receiver's foreground color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
void |
TableItem.setForeground(Color color)
Sets the receiver's foreground color to the color specified by the
argument, or to the default system color for the item if the argument is
null.
|
void |
TreeItem.setForeground(Color value)
Sets the receiver's foreground color to the color specified by the
argument, or to the default system color for the item if the argument is
null.
|
void |
TableItem.setForeground(int index,
Color color)
Sets the foreground color at the given column index in the receiver
to the color specified by the argument, or to the default system color for the item
if the argument is null.
|
void |
TreeItem.setForeground(int index,
Color color)
Sets the foreground color at the given column index in the receiver to the
color specified by the argument, or to the default system color for the
item if the argument is null.
|
Copyright (c) EclipseSource and others 2002, 2014.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0