public class RGBColorComparator extends java.lang.Object implements ComparatorInterface, RGBIndex
RGBColor objects.| Modifier and Type | Field and Description |
|---|---|
private int |
sortOrder |
INDEX_BLUE, INDEX_GREEN, INDEX_RED| Constructor and Description |
|---|
RGBColorComparator(int aSortOrder) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.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.
|
public int compare(java.lang.Object o1,
java.lang.Object o2)
ComparatorInterfaceo1 is smaller than o2,o1 is equal to o2 ando1 is greater than o2.compare in interface ComparatorInterfacepublic void setSortOrder(int aSortOrder)