org.knime.base.node.viz.pie.node
Class PieNodeView<P extends PieProperties<D>,D extends PieVizModel,T extends PieNodeModel<D>>
java.lang.Object
org.knime.core.node.AbstractNodeView<T>
org.knime.core.node.NodeView<T>
org.knime.base.node.viz.pie.node.PieNodeView<P,D,T>
- Type Parameters:
P
- the PieProperties
implementationD
- the PieVizModel
implementationT
- the PieNodeModel
implementation
- All Implemented Interfaces:
- EventListener, NodeModelWarningListener
- Direct Known Subclasses:
- FixedPieNodeView, InteractivePieNodeView
public abstract class PieNodeView<P extends PieProperties<D>,D extends PieVizModel,T extends PieNodeModel<D>>
- extends NodeView<T>
The abstract node view which contains the pie chart panel.
- Author:
- Tobias Koetter, University of Konstanz
Constructor Summary |
protected |
PieNodeView(T nodeModel)
Creates a new view instance for the histogram node. |
Method Summary |
protected abstract PiePlotter<P,D> |
getPlotter(D vizModel,
HiLiteHandler handler)
|
void |
modelChanged()
Whenever the model changes an update for the plotter is triggered and new
HiLiteHandler are set. |
protected void |
onClose()
Invoked when the window is about to be closed. |
protected void |
onOpen()
Invoked when the window has been opened. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PieNodeView
protected PieNodeView(T nodeModel)
- Creates a new view instance for the histogram node.
- Parameters:
nodeModel
- the corresponding node model
modelChanged
public void modelChanged()
- Whenever the model changes an update for the plotter is triggered and new
HiLiteHandler are set.
- Specified by:
modelChanged
in class AbstractNodeView<T extends PieNodeModel<D>>
getPlotter
protected abstract PiePlotter<P,D> getPlotter(D vizModel,
HiLiteHandler handler)
- Parameters:
vizModel
- the pie visualization modelhandler
- the hilite handler
- Returns:
- the plotter implementation
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<T extends PieNodeModel<D>>
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<T extends PieNodeModel<D>>
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.