|
||||||||||
| 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.pie.node.PieNodeModel<InteractivePieVizModel>
org.knime.base.node.viz.pie.node.interactive.InteractivePieNodeModel
public class InteractivePieNodeModel
The interactive implementation of the PieNodeModel class.
| Field Summary |
|---|
| Fields inherited from class org.knime.base.node.viz.pie.node.PieNodeModel |
|---|
AGGREGATION_COLUMN_FILTER, CFG_DATA_DIR_NAME, CFGKEY_AGGR_COLNAME, CFGKEY_AGGR_METHOD, CFGKEY_ALL_ROWS, CFGKEY_NO_OF_ROWS, CFGKEY_PIE_COLNAME, DEFAULT_NO_OF_ROWS, PIE_COLUMN_FILTER |
| Constructor Summary | |
|---|---|
protected |
InteractivePieNodeModel()
The constructor. |
| Method Summary | |
|---|---|
protected DataTableSpec[] |
configure(PortObjectSpec[] inSpecs)
Configure method for general port types. |
protected void |
createModel(ExecutionContext exec,
DataColumnSpec pieColSpec,
DataColumnSpec aggrColSpec,
BufferedDataTable dataTable,
int noOfRows,
boolean containsColorHandler)
Called prior #addDataRow(...) method to allow the
implementing class the specific model creation. |
InteractivePieVizModel |
getVizModelInternal()
|
protected void |
loadPieInternals(File dataDir,
ExecutionMonitor exec)
Loads the implementation internals. |
protected void |
resetPieData()
Resets the implementation internal data. |
protected void |
savePieInternals(File dataDir,
ExecutionMonitor exec)
Saves the implementation internal data. |
| Methods inherited from class org.knime.base.node.viz.pie.node.PieNodeModel |
|---|
execute, getAggregationColumnName, getPieColumnName, getVizModel, loadInternals, loadValidatedSettingsFrom, reset, saveInternals, saveSettingsTo, setAggregationColumnName, setPieColumnName, validateSettings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected InteractivePieNodeModel()
| Method Detail |
|---|
public InteractivePieVizModel getVizModelInternal()
throws TooManySectionsException
getVizModelInternal in class PieNodeModel<InteractivePieVizModel>PieVizModel. Could be null.
TooManySectionsException - if more sections are created than
supported
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 PieNodeModel<InteractivePieVizModel>inSpecs - 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 void resetPieData()
resetPieData in class PieNodeModel<InteractivePieVizModel>
protected void loadPieInternals(File dataDir,
ExecutionMonitor exec)
throws CanceledExecutionException
loadPieInternals in class PieNodeModel<InteractivePieVizModel>dataDir - the directory load load fromexec - the ExecutionMonitor
CanceledExecutionException - if action was canceled
protected void savePieInternals(File dataDir,
ExecutionMonitor exec)
throws IOException,
CanceledExecutionException
savePieInternals in class PieNodeModel<InteractivePieVizModel>dataDir - the directory to save toexec - the ExecutionMonitor
IOException - file exception
CanceledExecutionException - action was canceled
protected void createModel(ExecutionContext exec,
DataColumnSpec pieColSpec,
DataColumnSpec aggrColSpec,
BufferedDataTable dataTable,
int noOfRows,
boolean containsColorHandler)
throws CanceledExecutionException
#addDataRow(...) method to allow the
implementing class the specific model creation.
createModel in class PieNodeModel<InteractivePieVizModel>exec - the ExecutionMonitorpieColSpec - the DataColumnSpec of the selected pie columnaggrColSpec - the DataColumnSpec of the selected
aggregation columndataTable - the DataTableSpecnoOfRows - the expected number of rowscontainsColorHandler - true if a color handler is set
CanceledExecutionException - if the progress was canceled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||