diff options
author | Jonah Graham | 2020-05-13 21:21:07 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2020-06-11 14:22:39 +0000 |
commit | fa88c23ea44462cc8499b650b2b6f79d48e0d03b (patch) | |
tree | ff8f110c680c6902807f35b2e7c8b734d2c2d1d1 /bundles/org.eclipse.swt | |
parent | 89d25414f0d37b84ffa3b07444a99a6e4be18732 (diff) | |
download | eclipse.platform.swt-fa88c23ea44462cc8499b650b2b6f79d48e0d03b.tar.gz eclipse.platform.swt-fa88c23ea44462cc8499b650b2b6f79d48e0d03b.tar.xz eclipse.platform.swt-fa88c23ea44462cc8499b650b2b6f79d48e0d03b.zip |
Bug 563560: Remove out of date notes about limited color displays
Change-Id: Ib9b81352313c71677cdf3e2bbe2fc3afdfe50f97
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
Diffstat (limited to 'bundles/org.eclipse.swt')
3 files changed, 12 insertions, 132 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Color.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Color.java index 880f8c2092..9e3b18e0af 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Color.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Color.java @@ -58,11 +58,7 @@ Color(Device device) { /** * Constructs a new instance of this class given a device and the * desired red, green and blue values expressed as ints in the range - * 0 to 255 (where 0 is black and 255 is full brightness). On limited - * color devices, the color instance created by this call may not have - * the same RGB values as the ones specified by the arguments. The - * RGB values on the returned instance will be the color values of - * the operating system color. + * 0 to 255 (where 0 is black and 255 is full brightness). * * @param device the device on which to allocate the color * @param red the amount of red in the color @@ -83,11 +79,7 @@ public Color(Device device, int red, int green, int blue) { /** * Constructs a new instance of this class given the * desired red, green and blue values expressed as ints in the range - * 0 to 255 (where 0 is black and 255 is full brightness). On limited - * color devices, the color instance created by this call may not have - * the same RGB values as the ones specified by the arguments. The - * RGB values on the returned instance will be the color values of - * the operating system color. + * 0 to 255 (where 0 is black and 255 is full brightness). * * @param red the amount of red in the color * @param green the amount of green in the color @@ -106,11 +98,7 @@ public Color(int red, int green, int blue) { /** * Constructs a new instance of this class given a device and the * desired red, green, blue & alpha values expressed as ints in the range - * 0 to 255 (where 0 is black and 255 is full brightness). On limited - * color devices, the color instance created by this call may not have - * the same RGB values as the ones specified by the arguments. The - * RGB values on the returned instance will be the color values of - * the operating system color. + * 0 to 255 (where 0 is black and 255 is full brightness). * * @param device the device on which to allocate the color * @param red the amount of red in the color @@ -134,11 +122,7 @@ public Color(Device device, int red, int green, int blue, int alpha) { /** * Constructs a new instance of this class given the * desired red, green, blue & alpha values expressed as ints in the range - * 0 to 255 (where 0 is black and 255 is full brightness). On limited - * color devices, the color instance created by this call may not have - * the same RGB values as the ones specified by the arguments. The - * RGB values on the returned instance will be the color values of - * the operating system color. + * 0 to 255 (where 0 is black and 255 is full brightness). * * @param red the amount of red in the color * @param green the amount of green in the color @@ -159,10 +143,6 @@ public Color(int red, int green, int blue, int alpha) { /** * Constructs a new instance of this class given a device and an * <code>RGB</code> describing the desired red, green and blue values. - * On limited color devices, the color instance created by this call - * may not have the same RGB values as the ones specified by the - * argument. The RGB values on the returned instance will be the color - * values of the operating system color. * * @param device the device on which to allocate the color * @param rgb the RGB values of the desired color @@ -183,10 +163,6 @@ public Color(Device device, RGB rgb) { /** * Constructs a new instance of this class given an * <code>RGB</code> describing the desired red, green and blue values. - * On limited color devices, the color instance created by this call - * may not have the same RGB values as the ones specified by the - * argument. The RGB values on the returned instance will be the color - * values of the operating system color. * * @param rgb the RGB values of the desired color * @@ -205,10 +181,6 @@ public Color(RGB rgb) { /** * Constructs a new instance of this class given a device and an * <code>RGBA</code> describing the desired red, green, blue & alpha values. - * On limited color devices, the color instance created by this call - * may not have the same RGBA values as the ones specified by the - * argument. The RGBA values on the returned instance will be the color - * values of the operating system color + alpha. * * @param device the device on which to allocate the color * @param rgba the RGBA values of the desired color. Currently, SWT only honors extreme values for alpha i.e. 0 (transparent) or 255 (opaque). @@ -231,10 +203,6 @@ public Color(Device device, RGBA rgba) { /** * Constructs a new instance of this class given an * <code>RGBA</code> describing the desired red, green, blue & alpha values. - * On limited color devices, the color instance created by this call - * may not have the same RGBA values as the ones specified by the - * argument. The RGBA values on the returned instance will be the color - * values of the operating system color + alpha. * * @param rgba the RGBA values of the desired color. Currently, SWT only honors extreme values for alpha i.e. 0 (transparent) or 255 (opaque). * @@ -255,10 +223,6 @@ public Color(RGBA rgba) { * Constructs a new instance of this class given a device, an * <code>RGB</code> describing the desired red, green and blue values, * alpha specifying the level of transparency. - * On limited color devices, the color instance created by this call - * may not have the same RGB values as the ones specified by the - * argument. The RGB values on the returned instance will be the color - * values of the operating system color. * * @param device the device on which to allocate the color * @param rgb the RGB values of the desired color @@ -283,10 +247,6 @@ public Color(Device device, RGB rgb, int alpha) { * Constructs a new instance of this class given an * <code>RGB</code> describing the desired red, green and blue values, * alpha specifying the level of transparency. - * On limited color devices, the color instance created by this call - * may not have the same RGB values as the ones specified by the - * argument. The RGB values on the returned instance will be the color - * values of the operating system color. * * @param rgb the RGB values of the desired color * @param alpha the alpha value of the desired color. Currently, SWT only honors extreme values for alpha i.e. 0 (transparent) or 255 (opaque). diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Color.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Color.java index 183fef6f5f..e50d846757 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Color.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Color.java @@ -60,11 +60,7 @@ Color(Device device) { /** * Constructs a new instance of this class given a device and the * desired red, green and blue values expressed as ints in the range - * 0 to 255 (where 0 is black and 255 is full brightness). On limited - * color devices, the color instance created by this call may not have - * the same RGB values as the ones specified by the arguments. The - * RGB values on the returned instance will be the color values of - * the operating system color. + * 0 to 255 (where 0 is black and 255 is full brightness). * * @param device the device on which to allocate the color * @param red the amount of red in the color @@ -85,11 +81,7 @@ public Color(Device device, int red, int green, int blue) { /** * Constructs a new instance of this class given the * desired red, green and blue values expressed as ints in the range - * 0 to 255 (where 0 is black and 255 is full brightness). On limited - * color devices, the color instance created by this call may not have - * the same RGB values as the ones specified by the arguments. The - * RGB values on the returned instance will be the color values of - * the operating system color. + * 0 to 255 (where 0 is black and 255 is full brightness). * * @param red the amount of red in the color * @param green the amount of green in the color @@ -108,11 +100,7 @@ public Color(int red, int green, int blue) { /** * Constructs a new instance of this class given a device and the * desired red, green, blue & alpha values expressed as ints in the range - * 0 to 255 (where 0 is black and 255 is full brightness). On limited - * color devices, the color instance created by this call may not have - * the same RGB values as the ones specified by the arguments. The - * RGB values on the returned instance will be the color values of - * the operating system color. + * 0 to 255 (where 0 is black and 255 is full brightness). * * @param device the device on which to allocate the color * @param red the amount of red in the color @@ -136,11 +124,7 @@ public Color(Device device, int red, int green, int blue, int alpha) { /** * Constructs a new instance of this class given the * desired red, green, blue & alpha values expressed as ints in the range - * 0 to 255 (where 0 is black and 255 is full brightness). On limited - * color devices, the color instance created by this call may not have - * the same RGB values as the ones specified by the arguments. The - * RGB values on the returned instance will be the color values of - * the operating system color. + * 0 to 255 (where 0 is black and 255 is full brightness). * * @param red the amount of red in the color * @param green the amount of green in the color @@ -161,10 +145,6 @@ public Color(int red, int green, int blue, int alpha) { /** * Constructs a new instance of this class given a device and an * <code>RGB</code> describing the desired red, green and blue values. - * On limited color devices, the color instance created by this call - * may not have the same RGB values as the ones specified by the - * argument. The RGB values on the returned instance will be the color - * values of the operating system color. * * @param device the device on which to allocate the color * @param rgb the RGB values of the desired color @@ -185,10 +165,6 @@ public Color(Device device, RGB rgb) { /** * Constructs a new instance of this class given an * <code>RGB</code> describing the desired red, green and blue values. - * On limited color devices, the color instance created by this call - * may not have the same RGB values as the ones specified by the - * argument. The RGB values on the returned instance will be the color - * values of the operating system color. * * @param rgb the RGB values of the desired color * @@ -207,10 +183,6 @@ public Color(RGB rgb) { /** * Constructs a new instance of this class given a device and an * <code>RGBA</code> describing the desired red, green, blue & alpha values. - * On limited color devices, the color instance created by this call - * may not have the same RGBA values as the ones specified by the - * argument. The RGBA values on the returned instance will be the color - * values of the operating system color + alpha. * * @param device the device on which to allocate the color * @param rgba the RGBA values of the desired color. Currently, SWT only honors extreme values for alpha i.e. 0 (transparent) or 255 (opaque). @@ -233,10 +205,6 @@ public Color(Device device, RGBA rgba) { /** * Constructs a new instance of this class given an * <code>RGBA</code> describing the desired red, green, blue & alpha values. - * On limited color devices, the color instance created by this call - * may not have the same RGBA values as the ones specified by the - * argument. The RGBA values on the returned instance will be the color - * values of the operating system color + alpha. * * @param rgba the RGBA values of the desired color. Currently, SWT only honors extreme values for alpha i.e. 0 (transparent) or 255 (opaque). * @@ -257,10 +225,6 @@ public Color(RGBA rgba) { * Constructs a new instance of this class given a device, an * <code>RGB</code> describing the desired red, green and blue values, * alpha specifying the level of transparency. - * On limited color devices, the color instance created by this call - * may not have the same RGB values as the ones specified by the - * argument. The RGB values on the returned instance will be the color - * values of the operating system color. * * @param device the device on which to allocate the color * @param rgb the RGB values of the desired color @@ -285,10 +249,6 @@ public Color(Device device, RGB rgb, int alpha) { * Constructs a new instance of this class given an * <code>RGB</code> describing the desired red, green and blue values, * alpha specifying the level of transparency. - * On limited color devices, the color instance created by this call - * may not have the same RGB values as the ones specified by the - * argument. The RGB values on the returned instance will be the color - * values of the operating system color. * * @param rgb the RGB values of the desired color * @param alpha the alpha value of the desired color. Currently, SWT only honors extreme values for alpha i.e. 0 (transparent) or 255 (opaque). diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Color.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Color.java index 46349141ed..ac82e133c0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Color.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Color.java @@ -66,11 +66,7 @@ Color(Device device) { /** * Constructs a new instance of this class given a device and the * desired red, green and blue values expressed as ints in the range - * 0 to 255 (where 0 is black and 255 is full brightness). On limited - * color devices, the color instance created by this call may not have - * the same RGB values as the ones specified by the arguments. The - * RGB values on the returned instance will be the color values of - * the operating system color. + * 0 to 255 (where 0 is black and 255 is full brightness). * * @param device the device on which to allocate the color * @param red the amount of red in the color @@ -91,11 +87,7 @@ public Color (Device device, int red, int green, int blue) { /** * Constructs a new instance of this class given the * desired red, green and blue values expressed as ints in the range - * 0 to 255 (where 0 is black and 255 is full brightness). On limited - * color devices, the color instance created by this call may not have - * the same RGB values as the ones specified by the arguments. The - * RGB values on the returned instance will be the color values of - * the operating system color. + * 0 to 255 (where 0 is black and 255 is full brightness). * * @param red the amount of red in the color * @param green the amount of green in the color @@ -114,11 +106,7 @@ public Color(int red, int green, int blue) { /** * Constructs a new instance of this class given a device and the * desired red, green, blue & alpha values expressed as ints in the range - * 0 to 255 (where 0 is black and 255 is full brightness). On limited - * color devices, the color instance created by this call may not have - * the same RGB values as the ones specified by the arguments. The - * RGB values on the returned instance will be the color values of - * the operating system color. + * 0 to 255 (where 0 is black and 255 is full brightness). * * @param device the device on which to allocate the color * @param red the amount of red in the color @@ -142,11 +130,7 @@ public Color (Device device, int red, int green, int blue, int alpha) { /** * Constructs a new instance of this class given the * desired red, green, blue & alpha values expressed as ints in the range - * 0 to 255 (where 0 is black and 255 is full brightness). On limited - * color devices, the color instance created by this call may not have - * the same RGB values as the ones specified by the arguments. The - * RGB values on the returned instance will be the color values of - * the operating system color. + * 0 to 255 (where 0 is black and 255 is full brightness). * * @param red the amount of red in the color * @param green the amount of green in the color @@ -167,10 +151,6 @@ public Color(int red, int green, int blue, int alpha) { /** * Constructs a new instance of this class given a device and an * <code>RGB</code> describing the desired red, green and blue values. - * On limited color devices, the color instance created by this call - * may not have the same RGB values as the ones specified by the - * argument. The RGB values on the returned instance will be the color - * values of the operating system color. * * @param device the device on which to allocate the color * @param rgb the RGB values of the desired color @@ -191,10 +171,6 @@ public Color (Device device, RGB rgb) { /** * Constructs a new instance of this class given an * <code>RGB</code> describing the desired red, green and blue values. - * On limited color devices, the color instance created by this call - * may not have the same RGB values as the ones specified by the - * argument. The RGB values on the returned instance will be the color - * values of the operating system color. * * @param rgb the RGB values of the desired color * @@ -213,10 +189,6 @@ public Color(RGB rgb) { /** * Constructs a new instance of this class given a device and an * <code>RGBA</code> describing the desired red, green, blue & alpha values. - * On limited color devices, the color instance created by this call - * may not have the same RGBA values as the ones specified by the - * argument. The RGBA values on the returned instance will be the color - * values of the operating system color + alpha. * * @param device the device on which to allocate the color * @param rgba the RGBA values of the desired color. Currently, SWT only honors extreme values for alpha i.e. 0 (transparent) or 255 (opaque). @@ -239,10 +211,6 @@ public Color(Device device, RGBA rgba) { /** * Constructs a new instance of this class given an * <code>RGBA</code> describing the desired red, green, blue & alpha values. - * On limited color devices, the color instance created by this call - * may not have the same RGBA values as the ones specified by the - * argument. The RGBA values on the returned instance will be the color - * values of the operating system color + alpha. * * @param rgba the RGBA values of the desired color. Currently, SWT only honors extreme values for alpha i.e. 0 (transparent) or 255 (opaque). * @@ -263,10 +231,6 @@ public Color(RGBA rgba) { * Constructs a new instance of this class given a device, an * <code>RGB</code> describing the desired red, green and blue values, * alpha specifying the level of transparency. - * On limited color devices, the color instance created by this call - * may not have the same RGB values as the ones specified by the - * argument. The RGB values on the returned instance will be the color - * values of the operating system color. * * @param device the device on which to allocate the color * @param rgb the RGB values of the desired color @@ -291,10 +255,6 @@ public Color(Device device, RGB rgb, int alpha) { * Constructs a new instance of this class given an * <code>RGB</code> describing the desired red, green and blue values, * alpha specifying the level of transparency. - * On limited color devices, the color instance created by this call - * may not have the same RGB values as the ones specified by the - * argument. The RGB values on the returned instance will be the color - * values of the operating system color. * * @param rgb the RGB values of the desired color * @param alpha the alpha value of the desired color. Currently, SWT only honors extreme values for alpha i.e. 0 (transparent) or 255 (opaque). |