org.knime.base.node.viz.property.color
Class ColorManager2NodeFactory

java.lang.Object
  extended by org.knime.core.node.NodeFactory<ColorManager2NodeModel>
      extended by org.knime.base.node.viz.property.color.ColorManager2NodeFactory

public class ColorManager2NodeFactory
extends NodeFactory<ColorManager2NodeModel>

The color manager factory which creates a ColorManager2NodeDialogPane.

Author:
Thomas Gabriel, University of Konstanz
See Also:
ColorManager2NodeModel, ColorManager2NodeDialogPane

Nested Class Summary
 
Nested classes/interfaces inherited from class org.knime.core.node.NodeFactory
NodeFactory.NodeType
 
Constructor Summary
ColorManager2NodeFactory()
           
 
Method Summary
 NodeDialogPane createNodeDialogPane()
          Creates and returns a new node dialog pane, if NodeFactory.hasDialog() returns true.
 ColorManager2NodeModel createNodeModel()
          Creates and returns a new instance of the node's corresponding model.
 NodeView<ColorManager2NodeModel> createNodeView(int index, ColorManager2NodeModel nodeModel)
          Creates and returns a new node view for the given index.
 int getNrNodeViews()
          Returns the number of possible views or 0 if no view is available.
 boolean hasDialog()
          Returns true if this node provides a dialog to adjust node specific settings.
 
Methods inherited from class org.knime.core.node.NodeFactory
addLoadedFactory, createAbstractNodeView, getDefaultIcon, getIcon, getInportDescription, getInportName, getLoadedNodeFactories, getNodeName, getNodeViewName, getOutportDescription, getOutportName, getType, getViewDescription, getXMLDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorManager2NodeFactory

public ColorManager2NodeFactory()
Method Detail

createNodeModel

public ColorManager2NodeModel createNodeModel()
Creates and returns a new instance of the node's corresponding model.

Specified by:
createNodeModel in class NodeFactory<ColorManager2NodeModel>
Returns:
A new NodeModel for this node. Never null!

hasDialog

public boolean hasDialog()
Returns true if this node provides a dialog to adjust node specific settings.

Specified by:
hasDialog in class NodeFactory<ColorManager2NodeModel>
Returns:
true if a NodeDialogPane is available
See Also:
NodeFactory.createNodeDialogPane()

createNodeDialogPane

public NodeDialogPane createNodeDialogPane()
Creates and returns a new node dialog pane, if NodeFactory.hasDialog() returns true.

Specified by:
createNodeDialogPane in class NodeFactory<ColorManager2NodeModel>
Returns:
node dialog pane
See Also:
NodeFactory.hasDialog()

getNrNodeViews

public int getNrNodeViews()
Returns the number of possible views or 0 if no view is available.

Specified by:
getNrNodeViews in class NodeFactory<ColorManager2NodeModel>
Returns:
number of views available for this node
See Also:
NodeFactory.createNodeView(int,NodeModel)

createNodeView

public NodeView<ColorManager2NodeModel> createNodeView(int index,
                                                       ColorManager2NodeModel nodeModel)
Creates and returns a new node view for the given index.

Specified by:
createNodeView in class NodeFactory<ColorManager2NodeModel>
Parameters:
index - The index for the view to create.
nodeModel - the underlying model
Returns:
a new node view for the given index
See Also:
NodeFactory.getNrNodeViews()


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.