Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## toxi.color
Class ProximityComparator

    java.lang.Object
      toxi.color.ProximityComparator

All Implemented Interfaces:
  java.util.Comparator<ReadonlyTColor>

    public class ProximityComparator

extends java.lang.Object
implements java.util.Comparator<ReadonlyTColor>

Compares two colors by their distance to the given target color.

Constructor Summary
`ProximityComparator(ReadonlyTColor col, DistanceProxy proxy)`

Method Summary
`int` | `compare(ReadonlyTColor a, ReadonlyTColor b)`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface java.util.Comparator
`equals`

Constructor Detail

### ProximityComparator

    public ProximityComparator(ReadonlyTColor col,
                               DistanceProxy proxy)

Method Detail

### compare

    public int compare(ReadonlyTColor a,
                       ReadonlyTColor b)

  Specified by:
    `compare` in interface `java.util.Comparator<ReadonlyTColor>`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD