org.knime.base.node.viz.pie.node.fixed
Class FixedPieNodeModel

java.lang.Object
  extended by org.knime.core.node.NodeModel
      extended by org.knime.base.node.viz.pie.node.PieNodeModel<FixedPieVizModel>
          extended by org.knime.base.node.viz.pie.node.fixed.FixedPieNodeModel

public class FixedPieNodeModel
extends PieNodeModel<FixedPieVizModel>

The NodeModel class of the fixed pie chart implementation.

Author:
Tobias Koetter, University of Konstanz

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 FixedPieNodeModel()
          The constructor.
 
Method Summary
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.
protected  FixedPieVizModel 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
configure, execute, getAggregationColumnName, getPieColumnName, getVizModel, loadInternals, loadValidatedSettingsFrom, reset, saveInternals, saveSettingsTo, setAggregationColumnName, setPieColumnName, validateSettings
 
Methods inherited from class org.knime.core.node.NodeModel
addWarningListener, configure, continueLoop, execute, executeModel, getInHiLiteHandler, getLoopEndNode, getLoopStartNode, getNrInPorts, getNrOutPorts, getOutHiLiteHandler, getWarningMessage, notifyViews, notifyWarningListeners, peekFlowVariableDouble, peekFlowVariableInt, peekFlowVariableString, peekScopeVariableDouble, peekScopeVariableInt, peekScopeVariableString, pushFlowVariableDouble, pushFlowVariableInt, pushFlowVariableString, pushScopeVariableDouble, pushScopeVariableInt, pushScopeVariableString, removeWarningListener, setInHiLiteHandler, setWarningMessage, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedPieNodeModel

protected FixedPieNodeModel()
The constructor.

Method Detail

getVizModelInternal

protected FixedPieVizModel getVizModelInternal()

Specified by:
getVizModelInternal in class PieNodeModel<FixedPieVizModel>
Returns:
the PieVizModel. Could be null.

resetPieData

protected void resetPieData()
Resets the implementation internal data.

Specified by:
resetPieData in class PieNodeModel<FixedPieVizModel>

loadPieInternals

protected void loadPieInternals(File dataDir,
                                ExecutionMonitor exec)
                         throws CanceledExecutionException
Loads the implementation internals.

Specified by:
loadPieInternals in class PieNodeModel<FixedPieVizModel>
Parameters:
dataDir - the directory load load from
exec - the ExecutionMonitor
Throws:
CanceledExecutionException - if action was canceled

savePieInternals

protected void savePieInternals(File dataDir,
                                ExecutionMonitor exec)
                         throws IOException,
                                CanceledExecutionException
Saves the implementation internal data.

Specified by:
savePieInternals in class PieNodeModel<FixedPieVizModel>
Parameters:
dataDir - the directory to save to
exec - the ExecutionMonitor
Throws:
IOException - file exception
CanceledExecutionException - action was canceled

createModel

protected void createModel(ExecutionContext exec,
                           DataColumnSpec pieColSpec,
                           DataColumnSpec aggrColSpec,
                           BufferedDataTable dataTable,
                           int noOfRows,
                           boolean containsColorHandler)
                    throws CanceledExecutionException,
                           TooManySectionsException
Called prior #addDataRow(...) method to allow the implementing class the specific model creation.

Specified by:
createModel in class PieNodeModel<FixedPieVizModel>
Parameters:
exec - the ExecutionMonitor
pieColSpec - the DataColumnSpec of the selected pie column
aggrColSpec - the DataColumnSpec of the selected aggregation column
dataTable - the DataTableSpec
noOfRows - the expected number of rows
containsColorHandler - true if a color handler is set
Throws:
CanceledExecutionException
TooManySectionsException


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.