public class ColorDialog extends ImporterDialog
ColorChooser
.
ColorChooser is not used because there is no way to change the slider
labels—this means that we can't record macros in which custom colors
are chosen for multiple channels.Modifier and Type | Field and Description |
---|---|
private static Dimension |
SWATCH_SIZE |
options, process
IS_GLITCHED, optionsList, STATUS_CANCELED, STATUS_FINISHED, STATUS_OK
Constructor and Description |
---|
ColorDialog(ImportProcess process) |
Modifier and Type | Method and Description |
---|---|
private void |
attachListeners(List<TextField> colors,
List<Panel> swatches) |
protected ij.gui.GenericDialog |
constructDialog() |
private Panel |
createSwatch(Color color) |
private int |
getColorValue(TextField colorField) |
private List<TextField> |
getNumericFields(ij.gui.GenericDialog gd) |
protected boolean |
harvestResults(ij.gui.GenericDialog gd) |
private String |
makeLabel(String baseLabel,
int s,
int c) |
protected boolean |
needPrompt() |
displayDialog, showDialog
addCheckbox, addChoice, sleep
private static final Dimension SWATCH_SIZE
public ColorDialog(ImportProcess process)
protected boolean needPrompt()
needPrompt
in class ImporterDialog
protected ij.gui.GenericDialog constructDialog()
constructDialog
in class ImporterDialog
protected boolean harvestResults(ij.gui.GenericDialog gd)
harvestResults
in class ImporterDialog
private int getColorValue(TextField colorField)
Copyright © 2017 Open Microscopy Environment