| javax.swing.JPanel org.geotools.gui.swing.ParameterEditor
ParameterEditor | public class ParameterEditor extends JPanel (Code) | | An editor for arbitrary parameter object. The parameter value can be any
Object .
The editor content will changes according the parameter class. For example, the content
will be a
KernelEditor if the parameter is an instance of
KernelJAI .
Currently supported parameter type includes:
- Individual
,
,
or
.
- Table of any primitive type (
int[] ,
float[] , etc.).
- Matrix of any primitive type (
int[][] ,
float[][] , etc.).
- JAI
, which are display in tabular format.
-
and
, which are display like a matrix.
- Convolution
, which are display in a
KernelEditor .
since: 2.0 version: $Id: ParameterEditor.java 27862 2007-11-12 19:51:19Z desruisseaux $ author: Martin Desruisseaux See Also: org.geotools.gui.swing.image.KernelEditor See Also: org.geotools.gui.swing.image.ImageProperties See Also: org.geotools.gui.swing.image.OperationTreeBrowser |
Constructor Summary | |
public | ParameterEditor() Constructs an initially empty parameter editor. |
Method Summary | |
public String | getDescription() Returns the description currently shown, or
null if none. | public Component | getEditor() Returns the component used for editing the parameter. | public Object | getParameterValue() Returns the parameter value currently edited, or
null if none. | public void | setDescription(String description) Set the description string to write on top of the editor. | public void | setDescription(OperationNode operation, int index) Convenience method for setting the parameter description from a JAI operation node. | public void | setParameterValue(Object value) Set the value to edit. |
ParameterEditor | public ParameterEditor()(Code) | | Constructs an initially empty parameter editor.
|
getDescription | public String getDescription()(Code) | | Returns the description currently shown, or
null if none.
|
getParameterValue | public Object getParameterValue()(Code) | | Returns the parameter value currently edited, or
null if none.
|
setDescription | public void setDescription(String description)(Code) | | Set the description string to write on top of the editor.
This is usually a short description of the paramter being edited.
|
setDescription | public void setDescription(OperationNode operation, int index)(Code) | | Convenience method for setting the parameter description from a JAI operation node.
Parameters: operation - The operation node for the current parameter. Parameters: index - The parameter index, or -1 if unknow. since: 2.3 |
setParameterValue | public void setParameterValue(Object value)(Code) | | Set the value to edit. The editor content will be updated according the value type.
For example if the value is an instance of
KernelJAI , then the editor content
will be changed to a
KernelEditor .
Parameters: value - The value to edit. This object is usually an instance of Number,KernelJAI, LookupTableJAI or some other parameter object. |
|
|