JIU 0.14.3

net.sourceforge.jiu.color.quantization
Class RGBColorComparator

java.lang.Object
  extended by net.sourceforge.jiu.color.quantization.RGBColorComparator
All Implemented Interfaces:
RGBIndex, ComparatorInterface

public class RGBColorComparator
extends Object
implements ComparatorInterface, RGBIndex

Compares two RGBColor objects.

Author:
Marco Schmidt

Field Summary
 
Fields inherited from interface net.sourceforge.jiu.data.RGBIndex
INDEX_BLUE, INDEX_GREEN, INDEX_RED
 
Constructor Summary
RGBColorComparator(int aSortOrder)
           
 
Method Summary
 int compare(Object o1, Object o2)
          Compares the two argument objects and returns their relation.
 void setSortOrder(int aSortOrder)
          Sets the internal sort order (it is sorted by one of the three RGB components) to the parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RGBColorComparator

public RGBColorComparator(int aSortOrder)
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Description copied from interface: ComparatorInterface
Compares the two argument objects and returns their relation. Returns

Specified by:
compare in interface ComparatorInterface

setSortOrder

public void setSortOrder(int aSortOrder)
Sets the internal sort order (it is sorted by one of the three RGB components) to the parameter.


JIU 0.14.3

Copyright © 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Marco Schmidt