| javax.swing.JPanel org.geotools.gui.swing.image.RegisteredOperationBrowser
RegisteredOperationBrowser | public class RegisteredOperationBrowser extends JPanel (Code) | | Browse through the registered JAI operations. This widget display a tree build from a
JAI's
OperationRegistry . The tree has the following hierarchy:
- At the first level, all
(e.g. "rendered", "renderable", etc.) in alphabetical order.
- At the second level, all
(e.g. "Affine", "Multiply", etc.) registered in each
registry mode, in alphabetical order. This is the operation name to be given to
JAI.create(StringParameterBlock) JAI.create(...) methods.
- At the third level, a list of
as leafs, and the list of
as nodes.
This level is not sorted in alphabetical order, since the ordering is relevant.
- At the last level, a list of
as leafs. This level is not sorted in alphabetical order, since the ordering
is relevant.
since: 2.3 version: $Id: RegisteredOperationBrowser.java 27862 2007-11-12 19:51:19Z desruisseaux $ author: Martin Desruisseaux |
Method Summary | |
public static TreeModel | getTree() Returns a tree view of all operations registered in the default
JAI instance. | public static TreeModel | getTree(OperationRegistry registry, Locale locale) Returns a tree view of all operations registered in the given registry.
Parameters: registry - The registry (e.g. | public static void | main(String[] args) Display the operation browser from the command line. | protected void | selected(OperationDescriptor operation, int param) Invoked when the user selected a new operation in the tree. |
RegisteredOperationBrowser | public RegisteredOperationBrowser()(Code) | | Constructs a new operation browser for the default
JAI instance.
|
RegisteredOperationBrowser | public RegisteredOperationBrowser(OperationRegistry registry)(Code) | | Constructs a new operation browser for the specified operation registry.
Parameters: registry - The operation registry to use for fetching operations. |
getTree | public static TreeModel getTree()(Code) | | Returns a tree view of all operations registered in the default
JAI instance.
Labels will be formatted in the Swing's
.
All JAI operations as a tree. |
main | public static void main(String[] args)(Code) | | Display the operation browser from the command line. This method is usefull for checking
the widget appearance and the list of registered
JAI operations. If this method
is launch with the
-print argument, then the tree of operations will be sent
to standard output.
Parameters: args - the command line arguments |
selected | protected void selected(OperationDescriptor operation, int param)(Code) | | Invoked when the user selected a new operation in the tree. The default implementation
display the operation or parameter description in the text area.
Parameters: operation - The selected operation, or null if no operation isselected. Parameters: param - Index of the selected parameter, or -1 if no parameteris selected. |
|
|