RGBIndex, ComparatorInterfacepublic class RGBColorComparator extends Object implements ComparatorInterface, RGBIndex
RGBColor objects.| Modifier and Type | Field | Description |
|---|---|---|
private int |
sortOrder |
INDEX_BLUE, INDEX_GREEN, INDEX_RED| Constructor | Description |
|---|---|
RGBColorComparator(int aSortOrder) |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
public int compare(Object o1, 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)