java.lang.Object
org.eclipse.swt.widgets.Dialog
org.eclipse.swt.widgets.ColorDialog
- public class ColorDialog
- extends Dialog
Instances of this class allow the user to select a color
from a predefined set of available colors.
- Styles:
- (none)
- Events:
- (none)
IMPORTANT: This class is intended to be subclassed only
within the SWT implementation.
|
Constructor Summary |
ColorDialog(Shell parent)
Constructs a new instance of this class given only its parent. |
ColorDialog(Shell parent,
int style)
Constructs a new instance of this class given its parent
and a style value describing its behavior and appearance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rgb
org.eclipse.swt.graphics.RGB rgb
ColorDialog
public ColorDialog(Shell parent)
- Constructs a new instance of this class given only its parent.
ColorDialog
public ColorDialog(Shell parent,
int style)
- Constructs a new instance of this class given its parent
and a style value describing its behavior and appearance.
The style value is either one of the style constants defined in
class SWT which is applicable to instances of this
class, or must be built by bitwise OR'ing together
(that is, using the int "|" operator) two or more
of those SWT style constants. The class description
lists the style constants that are applicable to the class.
Style bits are also inherited from superclasses.
getRGB
public org.eclipse.swt.graphics.RGB getRGB()
- Returns the currently selected color in the receiver.
open
public org.eclipse.swt.graphics.RGB open()
- Makes the receiver visible and brings it to the front
of the display.
setRGB
public void setRGB(org.eclipse.swt.graphics.RGB rgb)
- Sets the receiver's selected color to be the argument.