org.knime.base.node.viz.histogram.datamodel
Class HSBColorComparator
java.lang.Object
org.knime.base.node.viz.histogram.datamodel.HSBColorComparator
- All Implemented Interfaces:
- Serializable, Comparator<Color>
public final class HSBColorComparator
- extends Object
- implements Comparator<Color>, Serializable
Comparator comparing two Color
objects using the HSB color
space. It compares first the hue than the saturation and at the end the
brightness.
- Author:
- Tobias Koetter, University of Konstanz
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static HSBColorComparator getInstance()
- Returns:
- the only instance of this comparator
compare
public int compare(Color o1,
Color o2)
-
- Specified by:
compare
in interface Comparator<Color>
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.