|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.AbstractNodeView<T>
org.knime.core.node.NodeView
org.knime.base.node.viz.plotter.node.DefaultVisualizationNodeView
public class DefaultVisualizationNodeView
Convenient implementation of a NodeView
that
can display one or more plotter implementations. One plotter
implementation has to be passed to the constructor and additional plotters
can be added as tabs with
addVisualization(AbstractPlotter, String)
. The appropriate
update methods are called by this class for all added plotters.
Field Summary |
---|
Fields inherited from class org.knime.core.node.NodeView |
---|
COLOR_BACKGROUND, PROP_CHANGE_CLOSE |
Constructor Summary | |
---|---|
DefaultVisualizationNodeView(NodeModel model,
AbstractPlotter plotter)
A generic NodeView which sets the model and
calls the right methods of the plotters. |
|
DefaultVisualizationNodeView(NodeModel model,
AbstractPlotter plotter,
String title)
A generic NodeView which sets the model and
calls the right methods of the plotters the title is the title of the
according tab. |
Method Summary | |
---|---|
void |
addVisualization(AbstractPlotter plotter,
String title)
Adds another tab with title title containing a plotter. |
protected JMenu |
getHiLiteMenu()
Dynamically creates a hilite menu with the typical hilite options: hilite, unhilite and clear hilite. |
protected void |
modelChanged()
Method is invoked when the underlying NodeModel has
changed. |
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 org.knime.core.node.AbstractNodeView |
---|
getLogger, getNodeModel, updateModel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultVisualizationNodeView(NodeModel model, AbstractPlotter plotter)
NodeView
which sets the model and
calls the right methods of the plotters.
model
- the node model (must implement DataProvider).plotter
- the plotterpublic DefaultVisualizationNodeView(NodeModel model, AbstractPlotter plotter, String title)
NodeView
which sets the model and
calls the right methods of the plotters the title is the title of the
according tab.
model
- the node model (must implement DataProvider).plotter
- the plottertitle
- the title for the first tabMethod Detail |
---|
public void addVisualization(AbstractPlotter plotter, String title)
title
containing a plotter.
plotter
- another visualizationtitle
- the title of the tab (if null a standard name is provided)protected void modelChanged()
NodeModel
has
changed. Also the HiLightHandler have changed. Note, the
NodeModel
content may be not available. Be sure to
modify GUI components in the EventDispatchThread only.
modelChanged
in class AbstractNodeView
protected JMenu getHiLiteMenu()
protected void onClose()
HiLiteListeners
. Dispose internal members. NodeModel
onClose
in class NodeView
protected void onOpen()
onOpen
in class NodeView
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |