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;
    }