org.knime.base.node.mine.cluster.kmeans
Class ClusterNodeView

java.lang.Object
  extended by org.knime.core.node.AbstractNodeView<T>
      extended by org.knime.core.node.NodeView<ClusterNodeModel>
          extended by org.knime.base.node.mine.cluster.kmeans.ClusterNodeView
All Implemented Interfaces:
EventListener, NodeModelWarningListener, HiLiteListener

public class ClusterNodeView
extends NodeView<ClusterNodeModel>
implements HiLiteListener

Author:
Michael Berthold, University of Konstanz

Field Summary
 
Fields inherited from class org.knime.core.node.NodeView
COLOR_BACKGROUND, PROP_CHANGE_CLOSE
 
Constructor Summary
ClusterNodeView(ClusterNodeModel nodeModel)
          Constructor - set name of view and NodeModel.
 
Method Summary
protected  ClusterNodeModel getNodeModel()
          Get reference to underlying NodeModel, never null.
 void hiLite(KeyEvent event)
          Invoked when some item(s) were hilit.
 void modelChanged()
          Update content of view - in this case fill TreeModel of JTree with new information or a message indicating nonexistend or erronous model.
protected  void onClose()
          Invoked when the window is about to be closed.
protected  void onOpen()
          Invoked when the window has been opened.
 void unHiLite(KeyEvent event)
          Invoked when some item(s) were unhilit.
 void unHiLiteAll(KeyEvent event)
          Invoked, when everything (all rows) are unhilit.
 
Methods inherited from class org.knime.core.node.NodeView
callCloseView, closeView, createFrame, getComponent, getJMenuBar, getViewTitle, isOpen, openViewComponent, setComponent, setShowNODATALabel, setViewTitleSuffix, warningChanged
 
Methods inherited from class org.knime.core.node.AbstractNodeView
getLogger, updateModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterNodeView

public ClusterNodeView(ClusterNodeModel nodeModel)
Constructor - set name of view and NodeModel.

Parameters:
nodeModel - the underlying model
Method Detail

getNodeModel

protected ClusterNodeModel getNodeModel()
Get reference to underlying NodeModel, never null.

Overrides:
getNodeModel in class AbstractNodeView<ClusterNodeModel>
Returns:
NodeModel reference.

hiLite

public void hiLite(KeyEvent event)
Invoked when some item(s) were hilit.

Specified by:
hiLite in interface HiLiteListener
Parameters:
event - contains a list of row keys that were hilit

unHiLite

public void unHiLite(KeyEvent event)
Invoked when some item(s) were unhilit.

Specified by:
unHiLite in interface HiLiteListener
Parameters:
event - contains a list of row keys that were unhilit

unHiLiteAll

public void unHiLiteAll(KeyEvent event)
Invoked, when everything (all rows) are unhilit.

Specified by:
unHiLiteAll in interface HiLiteListener
Parameters:
event - contains a list of row key that were unhilit

onOpen

protected void onOpen()
Invoked when the window has been opened. Register property listeners.
This method is called last on view construction - right before the components are made visible. It is not called on re-opening.

Specified by:
onOpen in class NodeView<ClusterNodeModel>

onClose

protected void onClose()
Invoked when the window is about to be closed. Unregister HiLiteListeners. Dispose internal members.
This method is the first to be called on a close request (right after the view is unregistered from the NodeModel

Specified by:
onClose in class NodeView<ClusterNodeModel>

modelChanged

public final void modelChanged()
Update content of view - in this case fill TreeModel of JTree with new information or a message indicating nonexistend or erronous model.

Specified by:
modelChanged in class AbstractNodeView<ClusterNodeModel>
See Also:
Observer.update(java.util.Observable, java.lang.Object)


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.