| javax.swing.JPanel org.geotools.gui.swing.image.OperationTreeBrowser
OperationTreeBrowser | public class OperationTreeBrowser extends JPanel (Code) | | Display a chain of images as a tree. It may be a chain of
RenderedImage or a chain of
RenderableImage . Those images are often the result of some operation (i.e. are actually
instances of
RenderedOp or
RenderableOp ). The image given to the constructor is
the root of the tree. The root contains the following children nodes:
- One node for each
, if any.
- One node for each
, if any.
Each source image can have its own source and parameters. In an analogy to a file system,
are like directories and
are like files.
When a tree node is selected in the left pane, the content of the right pane is adjusted
accordingly. If the node is an image, a "preview" tab is show together with an "information"
tab. Informations include the
,
, data type, etc. If the selected tree node
is a parameter, then the right pane show the parameter value in
appropriate for the parameter type.
since: 2.3 version: $Id: OperationTreeBrowser.java 26890 2007-09-07 11:05:40Z desruisseaux $ author: Martin Desruisseaux author: Lionel Flahaut See Also: ImageProperties See Also: ParameterEditor See Also: RegisteredOperationBrowser |
Constructor Summary | |
public | OperationTreeBrowser(RenderedImage source) Constructs a new browser for the given rendered image. | public | OperationTreeBrowser(RenderableImage source) Constructs a new browser for the given renderable image. |
Method Summary | |
public static TreeModel | getTree(RenderedImage image, Locale locale) Returns a tree with all sources and parameters for the given rendered image.
Parameters: image - The last image from an operation chain. Parameters: locale - The locale for tree node names. | public static TreeModel | getTree(RenderableImage image, Locale locale) Returns a tree with all sources and parameters for the given renderable image.
Parameters: image - The last image from an operation chain. Parameters: locale - The locale for tree node names. | public static void | main(String[] args) Display the properties for the images specified on the command line. | public static void | print(RenderedImage image) Prints to the
the operation chain for
the specified image. | public static void | print(RenderableImage image) Prints to the
the operation chain for
the specified image. | public static void | show(RenderedImage image) Show the operation tree for the specified rendered image in a frame. | public static void | show(RenderableImage image) Show the operation tree for the specified renderable image in a frame. | public boolean | showDialog(Component owner, String title) Show the operation chain in the given owner.
Parameters: owner - The owner widget, or null if none. Parameters: title - The widget title, or null for a default one. | protected boolean | showParameterEditor(Object selection) Invoked when the user clicks on a parameter node in the operation tree (left pane).
This method show a properties panel in the right pane appropriate for the given
selection.
Parameters: selection - The user selection. | protected boolean | showSourceEditor(Object selection) Invoked when the user clicks on a source node in the operation tree (left pane).
This method show a properties panel in the right pane appropriate for the given
selection.
Parameters: selection - The user selection. |
OperationTreeBrowser | public OperationTreeBrowser(RenderedImage source)(Code) | | Constructs a new browser for the given rendered image.
Parameters: source - The last image from the rendering chain to browse. |
OperationTreeBrowser | public OperationTreeBrowser(RenderableImage source)(Code) | | Constructs a new browser for the given renderable image.
Parameters: source - The last image from the rendering chain to browse. |
getTree | public static TreeModel getTree(RenderedImage image, Locale locale)(Code) | | Returns a tree with all sources and parameters for the given rendered image.
Parameters: image - The last image from an operation chain. Parameters: locale - The locale for tree node names. The tree for the given image and all its sources. |
getTree | public static TreeModel getTree(RenderableImage image, Locale locale)(Code) | | Returns a tree with all sources and parameters for the given renderable image.
Parameters: image - The last image from an operation chain. Parameters: locale - The locale for tree node names. The tree for the given image and all its sources. |
main | public static void main(String[] args) throws IOException(Code) | | Display the properties for the images specified on the command line.
throws: IOException - if an error occured while reading an image. |
print | public static void print(RenderedImage image)(Code) | | Prints to the
the operation chain for
the specified image. This convenience method is used mostly for debugging purpose.
since: 2.4 |
print | public static void print(RenderableImage image)(Code) | | Prints to the
the operation chain for
the specified image. This convenience method is used mostly for debugging purpose.
since: 2.4 |
show | public static void show(RenderedImage image)(Code) | | Show the operation tree for the specified rendered image in a frame.
This convenience method is mostly a helper for debugging purpose.
|
show | public static void show(RenderableImage image)(Code) | | Show the operation tree for the specified renderable image in a frame.
This convenience method is mostly a helper for debugging purpose.
|
showDialog | public boolean showDialog(Component owner, String title)(Code) | | Show the operation chain in the given owner.
Parameters: owner - The owner widget, or null if none. Parameters: title - The widget title, or null for a default one. true if the user clicked on the "Ok" button. |
showParameterEditor | protected boolean showParameterEditor(Object selection)(Code) | | Invoked when the user clicks on a parameter node in the operation tree (left pane).
This method show a properties panel in the right pane appropriate for the given
selection.
Parameters: selection - The user selection. This object is usually an instance ofNumber, KernelJAI, LookupTableJAI or some otherparameter object. true if this method has been able to find an editor, or false otherwise. |
showSourceEditor | protected boolean showSourceEditor(Object selection)(Code) | | Invoked when the user clicks on a source node in the operation tree (left pane).
This method show a properties panel in the right pane appropriate for the given
selection.
Parameters: selection - The user selection. This object is usually an instance ofRenderedImage, RenderableImage or PropertySource. true if this method has been able to find an editor, or false otherwise. |
|
|