WidgetZYXComparator

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.ctdp.rfdynhud.util
Class WidgetZYXComparator

    java.lang.Object
      net.ctdp.rfdynhud.util.WidgetZYXComparator

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

    public class WidgetZYXComparator

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

`Comparator` implementation to sort `Widget`s by z-index first, then by y-coordinate and then by x-coordinate.

Author:
  Marvin Froehlich (CTDP)

Field Summary
`static WidgetZYXComparator` | `INSTANCE`

Constructor Summary
`WidgetZYXComparator()`

Method Summary
`int` | `compare(Widget w1, Widget w2)`

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

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

Field Detail

### INSTANCE

    public static final WidgetZYXComparator INSTANCE

Constructor Detail

### WidgetZYXComparator

    public WidgetZYXComparator()

Method Detail

### compare

    public int compare(Widget w1,
                       Widget w2)

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD