Package org.knime.base.node.viz.plotter.node

This package contains a default node implementation which can be used if a simple plotter is implemented, which displays data from one inport and also wants to display only a restricted number of rows.

See:
          Description

Class Summary
DefaultVisualizationNodeDialog Lets the user define the maximum number of rows to be displayed.
DefaultVisualizationNodeModel Implementation of a NodeModel which provides all functionality that is needed for a default plotter implementation.
DefaultVisualizationNodeView Convenient implementation of a NodeView that can display one or more plotter implementations.
 

Package org.knime.base.node.viz.plotter.node Description

This package contains a default node implementation which can be used if a simple plotter is implemented, which displays data from one inport and also wants to display only a restricted number of rows. The DefaultVisualizationNodeModel reads in the data from inport 0, stores it in a DataArray and provides it by the getDataArray() method of the DataProvider interface. Also the maximum number of rows to display is read from the settings and the data is saved and loaded in the loadInternals and saveInternals methods.

The DefaultVisualizationNodeDialog lets the user define the maximum number to display.

The DefaultVisualizationNodeView holds one or more plotter instances and calls the appropriate methods. Either a DefaultVisualizationNodeView can be created with one plotter as the argument or the addVisualization method can be used, which adds another tab with the passed plotter.

If these default components are used only a NodeFactory has to be defined like in the example shown below:

    /**
     * @see org.knime.core.node.NodeFactory#createNodeDialogPane()
     */
    protected NodeDialogPane createNodeDialogPane() {
        return new DefaultVisualizationNodeDialog();
    }

    /**
     * @see org.knime.core.node.NodeFactory#createNodeModel()
     */
    public NodeModel createNodeModel() {
        return new DefaultVisualizationNodeModel();
    }

    /**
     * @see org.knime.core.node.NodeFactory#createNodeView(int, 
     * org.knime.core.node.NodeModel)
     */
    public NodeView createNodeView(final int viewIndex, 
            final NodeModel nodeModel) {
        return new DefaultVisualizationNodeView(nodeModel, new YourPlotter());
    }

    /**
     * @see org.knime.core.node.NodeFactory#getNrNodeViews()
     */
    protected int getNrNodeViews() {
        return 1;
    }

    /**
     * @see org.knime.core.node.NodeFactory#hasDialog()
     */
    protected boolean hasDialog() {
        return true;
    }



Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.