org.eclipse.swt.graphics
Class Color
java.lang.Object
|
+--org.eclipse.swt.graphics.Color
- public class Color
- extends Object
Instances of this class manage the resources that implement SWT's
RGB color model. To create a color one can either specify the
individual color components as integers in the range 0 to 255 or
provide an instance of an RGB.
Application code must explicitly invoke the Color.dispose()
method to release the operating system resources managed by each instance
when those instances are no longer required.
- See Also:
RGB,
Device#getSystemColor
|
Constructor Summary |
protected |
Color(Display d,
int id)
Constructs a new instance of a system color. |
|
Method Summary |
protected int |
getAppropriateSystemColor()
Retrieves an appropriate (most matching) system color value
for this Color object. |
Color
protected Color(Display d,
int id)
- Constructs a new instance of a system color.
- Parameters:
id - the system color constants as specified in SWT
getAppropriateSystemColor
protected int getAppropriateSystemColor()
- Retrieves an appropriate (most matching) system color value
for this Color object.