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

## edu.stanford.smi.protege.widget
Class SlotWidgetComparer

    java.lang.Object
      edu.stanford.smi.protege.widget.SlotWidgetComparer

All Implemented Interfaces:
  Comparator

    public class SlotWidgetComparer

extends Object
implements Comparator

A comparer for slot widgets. This class doesn't actually compare the widgets, just their types. The widgets are then "sorted" in such a way that their display will look reasonable (big widgets on the right and bottom). A better algorithm would actually look at the sizes of the widgets themselves.

Author:
  Ray Fergerson

Constructor Summary
`SlotWidgetComparer()`

Method Summary
`int` | `compare(Object o1, Object o2)`

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`

Constructor Detail

### SlotWidgetComparer

    public SlotWidgetComparer()

Method Detail

### compare

    public int compare(Object o1,
                       Object o2)

  Specified by:
    `compare` in interface `Comparator`

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

Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2009 Stanford University.