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 java.awt.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(java.util.List<java.awt.TextField> colors,
java.util.List<java.awt.Panel> swatches) |
protected ij.gui.GenericDialog |
constructDialog() |
private java.awt.Panel |
createSwatch(java.awt.Color color) |
private int |
getColorValue(java.awt.TextField colorField) |
private java.util.List<java.awt.TextField> |
getNumericFields(ij.gui.GenericDialog gd) |
protected boolean |
harvestResults(ij.gui.GenericDialog gd) |
private java.lang.String |
makeLabel(java.lang.String baseLabel,
int s,
int c) |
protected boolean |
needPrompt() |
displayDialog, showDialog
addCheckbox, addChoice, sleep
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 java.lang.String makeLabel(java.lang.String baseLabel, int s, int c)
private java.awt.Panel createSwatch(java.awt.Color color)
private void attachListeners(java.util.List<java.awt.TextField> colors, java.util.List<java.awt.Panel> swatches)
private int getColorValue(java.awt.TextField colorField)
private java.util.List<java.awt.TextField> getNumericFields(ij.gui.GenericDialog gd)
Copyright © 2019 Open Microscopy Environment