|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectComponent
Container
JComponent
ParameterEditor
public class ParameterEditor
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:
int[], float[], etc.).int[][], float[][], etc.).KernelEditor.
KernelEditor,
ImageProperties,
OperationTreeBrowser,
Serialized Form
| display/geotk-widgets-swing (download) | View source code for this class |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ParameterEditor()
Constructs an initially empty parameter editor. |
|
| Method Summary | |
|---|---|
String |
getDescription()
Returns the description currently shown, or null if none. |
Component |
getEditor()
Returns the component used for editing the parameter. |
Object |
getParameterValue()
Returns the parameter value currently edited, or null if none. |
void |
setDescription(OperationNode operation,
int index)
Convenience method for setting the parameter description from a JAI operation node. |
void |
setDescription(String description)
Sets the description to shown. |
void |
setParameterValue(Object value)
Sets the value to edit. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterEditor()
| Method Detail |
|---|
public Object getParameterValue()
null if none.
null.public void setParameterValue(Object value)
KernelJAI, then the editor content
will be changed to a KernelEditor.
value - The value to edit. This object is usually an instance of Number,
KernelJAI, LookupTableJAI or some other parameter object.public String getDescription()
null if none. This is usually a short
description of the parameter being edited. The string may contain simple HTML tags.
null.public void setDescription(String description)
JLabel, which allows such tags.
description - The description to be shown.
public void setDescription(OperationNode operation,
int index)
setDescription(String) with
the description found, or a description built from other informations like the parameter type
if no explicit description was found.
operation - The operation node for the current parameter.index - The parameter index, or -1 if unknown.public Component getEditor()
setParameterValue(java.lang.Object). The editor may be
an instance of KernelEditor, JTable, JTextField, JList or
any other suitable component.
null if no value has been set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||