org.knime.base.node.viz.pie.datamodel.interactive
Class InteractivePieVizModel

java.lang.Object
  extended by org.knime.base.node.viz.pie.datamodel.PieVizModel
      extended by org.knime.base.node.viz.pie.datamodel.interactive.InteractivePieVizModel

public class InteractivePieVizModel
extends PieVizModel

This is the interactive implementation of the PieVizModel.

Author:
Tobias Koetter, University of Konstanz

Field Summary
 
Fields inherited from class org.knime.base.node.viz.pie.datamodel.PieVizModel
DEFAULT_EXPLODE_AREA_MARGIN, DEFAULT_PIE_SIZE, LABEL_AREA_MARGIN, MAXIMUM_EXPLODE_SIZE, MAXIMUM_PIE_SIZE, MINIMUM_ARC_ANGLE, MINIMUM_EXPLODE_SIZE, MINIMUM_PIE_SIZE, MISSING_VAL_SECTION_CAPTION, MISSING_VAL_SECTION_COLOR
 
Constructor Summary
InteractivePieVizModel(InteractivePieDataModel model, String pieColumn, String aggrCol)
          Constructor for class InteractivePieVizModel.
 
Method Summary
 String getAggregationColumnName()
          
 DataColumnSpec getColSpec(String colName)
           
protected  PieSectionDataModel getMissingSection()
          
 String getPieColumnName()
          
protected  List<PieSectionDataModel> getSections()
          
 DataTableSpec getTableSpec()
           
 boolean setAggrColumn(String aggrColName)
           
 boolean setPieColumn(String pieColName)
           
 
Methods inherited from class org.knime.base.node.viz.pie.datamodel.PieVizModel
clearSelection, createLabel, createLabel, detailsAvailable, drawAntialias, drawSectionOutline, explodeSelectedSections, getAbsAggregationValue, getAggregationMethod, getCalculator, getDrawingSpace, getExplodedArea, getExplodeSize, getHTMLDetailData, getLabelArea, getLabelDisplayPolicy, getLabelLinkSize, getPieArea, getPieCenter, getPieSize, getSections2Draw, getSelectedElement, getSelectedKeys, getSelectedSections, getValueScale, hasMissingSection, selectElement, selectElement, setAggregationMethod, setDrawAntialias, setDrawingSpace, setDrawSectionOutline, setExplodeSelectedSections, setExplodeSize, setLabelDisplayPolicy, setPieSize, setShowDetails, setShowMissingValSection, setValueScale, showDetails, showMissingValSection, supportsHiliting, unHiliteAll, updateHiliteInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteractivePieVizModel

public InteractivePieVizModel(InteractivePieDataModel model,
                              String pieColumn,
                              String aggrCol)
                       throws TooManySectionsException
Constructor for class InteractivePieVizModel.

Parameters:
model - the data model
pieColumn - the name of the pie column
aggrCol - the name of the aggregation column
Throws:
TooManySectionsException - if more sections are created than supported
Method Detail

setPieColumn

public boolean setPieColumn(String pieColName)
                     throws TooManySectionsException
Parameters:
pieColName - the name of the pie column
Returns:
true if the name has changed
Throws:
TooManySectionsException - if more sections are created than supported

getPieColumnName

public String getPieColumnName()

Specified by:
getPieColumnName in class PieVizModel
Returns:
the name of the pie column

setAggrColumn

public boolean setAggrColumn(String aggrColName)
                      throws TooManySectionsException
Parameters:
aggrColName - the optional name of the aggregation column
Returns:
true if the name has changed
Throws:
TooManySectionsException - if more sections are created than supported

getAggregationColumnName

public String getAggregationColumnName()

Specified by:
getAggregationColumnName in class PieVizModel
Returns:
the optional name of the aggregation column

getColSpec

public DataColumnSpec getColSpec(String colName)
Parameters:
colName - the column name to get the spec for
Returns:
the DataColumnSpec

getSections

protected List<PieSectionDataModel> getSections()

Specified by:
getSections in class PieVizModel
Returns:
all data sections

getMissingSection

protected PieSectionDataModel getMissingSection()

Specified by:
getMissingSection in class PieVizModel
Returns:
the missing value data section which could be empty

getTableSpec

public DataTableSpec getTableSpec()
Returns:
the DataTableSpec of the input data


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.