public class ColorEditorDialog
extends Dialog
Dialog allowing direct edit of color definitions.
THe following color types are fully supported:
rgb
rgbf
rgbt
rgbft
Constructor and Description |
---|
ColorEditorDialog(Shell parentShell,
ColorData colorData)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
close()
Transfers the actual color values into the variables.
|
void |
create()
Sets the dialog title and image.
|
protected Control |
createDialogArea(Composite parent)
Creates the dialog area.
|
ColorData |
getColorData() |
void |
widgetDefaultSelected(SelectionEvent e) |
void |
widgetSelected(SelectionEvent e) |
public ColorEditorDialog(Shell parentShell, ColorData colorData)
parentShell
- The parent shell for this modal dialog.colorData
- The initial values to be displayed.public boolean close()
org.eclipse.jface.dialogs.Dialog#close()
protected Control createDialogArea(Composite parent)
org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite)
public void create()
org.eclipse.jface.dialogs.Dialog#create()
public void widgetDefaultSelected(SelectionEvent e)
public void widgetSelected(SelectionEvent e)
public ColorData getColorData()
ColorData
object representing the new color data.