|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.NodeModel
org.knime.base.node.viz.histogram.node.AbstractHistogramNodeModel
org.knime.base.node.viz.histogram.node.HistogramNodeModel
public class HistogramNodeModel
The NodeModel class of the interactive histogram plotter.
| Field Summary |
|---|
| Fields inherited from class org.knime.base.node.viz.histogram.node.AbstractHistogramNodeModel |
|---|
CFG_DATA_DIR_NAME, CFGKEY_AGGR_COLNAME, CFGKEY_ALL_ROWS, CFGKEY_NO_OF_ROWS, CFGKEY_X_COLNAME, DEFAULT_NO_OF_ROWS |
| Constructor Summary | |
|---|---|
HistogramNodeModel()
|
|
| Method Summary | |
|---|---|
protected DataTableSpec[] |
configure(PortObjectSpec[] inSpecs)
Configure method for general port types. |
protected void |
createHistogramModel(ExecutionContext exec,
int noOfRows,
BufferedDataTable data)
This method should use the given information to create the internal histogram data model. |
protected AbstractHistogramVizModel |
getHistogramVizModel()
This method creates a new AbstractHistogramVizModel each time
it is called. |
protected void |
loadHistogramInternals(File dataDir,
ExecutionMonitor exec)
Called from the AbstractHistogramNodeModel.loadInternals(File, ExecutionMonitor) method
to let the histogram implementation load own internal data. |
protected void |
reset()
Override this function in the derived model and reset your NodeModel. |
protected void |
saveHistogramInternals(File dataDir,
ExecutionMonitor exec)
Called from the AbstractHistogramNodeModel.saveInternals(File, ExecutionMonitor) method
to let the histogram implementation save own internal data. |
| Methods inherited from class org.knime.base.node.viz.histogram.node.AbstractHistogramNodeModel |
|---|
execute, getAggrColumns, getSelectedXColumnName, getTableSpec, getXColIdx, getXColSpec, loadInternals, loadValidatedSettingsFrom, saveInternals, saveSettingsTo, setAllRowsDefault, setSelectedAggrColumns, setSelectedXColumnName, validateSettings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HistogramNodeModel()
| Method Detail |
|---|
protected void createHistogramModel(ExecutionContext exec,
int noOfRows,
BufferedDataTable data)
throws CanceledExecutionException
createHistogramModel in class AbstractHistogramNodeModelexec - the ExecutionContext for progress informationnoOfRows - the number of rows to displaydata - the DataTable which contains the rows
CanceledExecutionException - if the user has canceled the
node executionprotected void reset()
NodeModel. All components should unregister themselves
from any observables (at least from the hilite handler right now). All
internally stored data structures should be released. User settings
should not be deleted/reset though.
reset in class AbstractHistogramNodeModel
protected DataTableSpec[] configure(PortObjectSpec[] inSpecs)
throws InvalidSettingsException
PortObjectSpecs that are defined through the
PortTypes given in the
constructor.
Similarly, the returned output specs need to comply with their port types
spec class (otherwise an error is reported by the framework). They may
also be null.
For a general description of the configure method refer to the
description of the specialized NodeModel.configure(DataTableSpec[])
methods as it addresses more use cases.
configure in class AbstractHistogramNodeModelinSpecs - The input data table specs. Items of the array could be
null if no spec is available from the corresponding input port
(i.e. not connected or upstream node does not produce an
output spec). If a port is of type
BufferedDataTable.TYPE and no spec is available the
framework will replace null by an empty DataTableSpec
(no columns) unless the port is marked as optional.
InvalidSettingsException - If this node can't be configured.protected AbstractHistogramVizModel getHistogramVizModel()
AbstractHistogramVizModel each time
it is called.
getHistogramVizModel in class AbstractHistogramNodeModelnull if not
all information are available yet
protected void loadHistogramInternals(File dataDir,
ExecutionMonitor exec)
throws Exception
AbstractHistogramNodeModel.loadInternals(File, ExecutionMonitor) method
to let the histogram implementation load own internal data.
loadHistogramInternals in class AbstractHistogramNodeModeldataDir - the directory to write toexec - the ExecutionMonitor to provide progress message
Exception - if an exception occurs
protected void saveHistogramInternals(File dataDir,
ExecutionMonitor exec)
throws Exception
AbstractHistogramNodeModel.saveInternals(File, ExecutionMonitor) method
to let the histogram implementation save own internal data.
saveHistogramInternals in class AbstractHistogramNodeModeldataDir - the directory to write toexec - the ExecutionMonitor to provide progress message
Exception - if an exception occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||