org.knime.base.node.viz.aggregation.util
Class AggrValModelComparator

java.lang.Object
  extended by org.knime.base.node.viz.aggregation.util.AggrValModelComparator
All Implemented Interfaces:
Comparator<AggregationValModel>

public class AggrValModelComparator
extends Object
implements Comparator<AggregationValModel>

Author:
Tobias Koetter, University of Konstanz

Constructor Summary
AggrValModelComparator(boolean sortNumerical, boolean ascending)
          Constructor for class AggrValModelComparator.
 
Method Summary
 int compare(AggregationValModel o1, AggregationValModel o2)
          
 void setBinNumerical(boolean sortNumerical)
           
 void setSortAscending(boolean ascending)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

AggrValModelComparator

public AggrValModelComparator(boolean sortNumerical,
                              boolean ascending)
Constructor for class AggrValModelComparator.

Parameters:
sortNumerical - if numeric sorting enabled
ascending - true if the sections should be sorted in ascending order
Method Detail

compare

public int compare(AggregationValModel o1,
                   AggregationValModel o2)

Specified by:
compare in interface Comparator<AggregationValModel>

setSortAscending

public void setSortAscending(boolean ascending)
Parameters:
ascending - true if the sections should be sorted in ascending order

setBinNumerical

public void setBinNumerical(boolean sortNumerical)
Parameters:
sortNumerical - true if the name is a number


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.