Package org.esa.snap.core.param.editors
Class ColorEditor
- java.lang.Object
-
- org.esa.snap.core.param.AbstractParamEditor
-
- org.esa.snap.core.param.AbstractParamXEditor
-
- org.esa.snap.core.param.editors.ColorEditor
-
- All Implemented Interfaces:
ParamEditor
,ParamExceptionHandler
public class ColorEditor extends AbstractParamXEditor
An editor which uses a colouredJComponent
if, when clicked, opens aJColorChooser
.
-
-
Constructor Summary
Constructors Constructor Description ColorEditor(Parameter parameter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.esa.snap.core.param.editors.ColorEditor.ColorDisplay
getColorDisplay()
JComponent
getEditorComponentChild()
protected void
initUIChild()
protected void
invokeXEditor()
void
updateUI()
Tells the UI to update it's state.-
Methods inherited from class org.esa.snap.core.param.AbstractParamXEditor
createXEditorButton, getEditorComponent, getXEditorButton, getXEditorIcon, getXEditorTitle, initUI
-
Methods inherited from class org.esa.snap.core.param.AbstractParamEditor
checkParameterValue, getComponent, getDefaultActionListener, getDefaultInputVerifier, getExceptionHandler, getLabelComponent, getParameter, getPhysUnitLabelComponent, handleParamException, isEnabled, nameComponent, nameEditorComponent, nameLabelComponent, nameUnitComponent, reconfigureUI, setDefaultLabelComponent, setDefaultPhysUnitLabelComponent, setEnabled, setLabelComponent, setParameterValue, setPhysUnitLabelComponent
-
-
-
-
Constructor Detail
-
ColorEditor
public ColorEditor(Parameter parameter)
-
-
Method Detail
-
getColorDisplay
public org.esa.snap.core.param.editors.ColorEditor.ColorDisplay getColorDisplay()
-
getEditorComponentChild
public JComponent getEditorComponentChild()
- Specified by:
getEditorComponentChild
in classAbstractParamXEditor
-
initUIChild
protected void initUIChild()
- Specified by:
initUIChild
in classAbstractParamXEditor
-
updateUI
public void updateUI()
Description copied from class:AbstractParamXEditor
Tells the UI to update it's state.Note: If you override this method, please call the super class version first.
- Specified by:
updateUI
in interfaceParamEditor
- Overrides:
updateUI
in classAbstractParamXEditor
-
invokeXEditor
protected void invokeXEditor()
- Specified by:
invokeXEditor
in classAbstractParamXEditor
-
-