org.knime.base.node.viz.pie.util
Class PieColumnFilter

java.lang.Object
  extended by org.knime.base.node.viz.pie.util.PieColumnFilter
All Implemented Interfaces:
ColumnFilter

public final class PieColumnFilter
extends Object
implements ColumnFilter

A ColumnFilter implementation that filters all columns with no valid domain and more than 250 values.

Author:
Tobias Koetter, University of Konstanz

Field Summary
static int MAX_NO_OF_SECTIONS
          Maximum number of supported sections.
 
Method Summary
 String allFilteredMsg()
          
static PieColumnFilter getInstance()
           
 boolean includeColumn(DataColumnSpec colSpec)
          Checks if the column with the given DataColumnSpec should be included or not.
static boolean validDomain(DataColumnSpec colSpec)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_NO_OF_SECTIONS

public static final int MAX_NO_OF_SECTIONS
Maximum number of supported sections. This boundary is also mentioned in the node description!!!

See Also:
Constant Field Values
Method Detail

getInstance

public static PieColumnFilter getInstance()
Returns:
the only instance of this singleton

allFilteredMsg

public String allFilteredMsg()

Specified by:
allFilteredMsg in interface ColumnFilter
Returns:
the message to display if all columns are filtered

includeColumn

public boolean includeColumn(DataColumnSpec colSpec)
Checks if the column with the given DataColumnSpec should be included or not.

Specified by:
includeColumn in interface ColumnFilter
Parameters:
colSpec - the column specification of the column to check
Returns:
true if the column should be included or false if the column is filtered.

validDomain

public static final boolean validDomain(DataColumnSpec colSpec)
Parameters:
colSpec - the DataColumnSpec to validate
Returns:
true if the column specification is valid


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.