public class ColormapDialog extends Dialog implements ISizeUpdater
Modal dialog for color_map
editing.
Allows graphical color map editing by selecting the color using a color picker and setting the position by sliding the entry.
Modifier and Type | Field and Description |
---|---|
Point |
size |
Constructor and Description |
---|
ColormapDialog(Shell parent)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
close()
Transfers the flow entry list into tbe variable.
|
void |
create()
Sets the dialog title and image.
|
protected Control |
createDialogArea(Composite parent)
Creates the dialog area.
|
java.util.List<ColorData> |
getValueList() |
void |
recalcLayout()
Automatically resized the dialog if necessary.
|
void |
setValueList(java.util.List<ColorData> list)
Sets the initial list of
ColorData objects. |
public ColormapDialog(Shell parent)
parent
- The parent Shell
of this modal dialog.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 boolean close()
org.eclipse.jface.dialogs.Dialog#close()
public void recalcLayout()
recalcLayout
in interface ISizeUpdater
ISizeUpdater.recalcLayout()
public void setValueList(java.util.List<ColorData> list)
ColorData
objects.list
- public java.util.List<ColorData> getValueList()
ColorData
objects representing
the color map after being edited.