| java.lang.Object net.refractions.udig.ui.SelectionComparator
SelectionComparator | public class SelectionComparator implements Comparator<Feature>(Code) | | Promotes the Features selected by the filter to the top if SWT.UP.
author: Jesse since: 1.1.0 |
Constructor Summary | |
public | SelectionComparator(Filter filter, int direction) | public | SelectionComparator(Filter filter, int direction, Comparator<Feature> subComparator) Parameters: filter - the filter to use to promote the selected features Parameters: direction - SWT.UP to put selected features at the start of the list, SWT.DOWN to put the selected features on the end Parameters: subComparator - this comparator will sort the same-type items. |
Method Summary | |
public int | compare(Feature o1, Feature o2) |
SelectionComparator | public SelectionComparator(Filter filter, int direction)(Code) | | Parameters: filter - the filter to use to promote the selected features Parameters: direction - SWT.UP to put selected features at the start of the list, SWT.DOWN to put the selected features on the end |
SelectionComparator | public SelectionComparator(Filter filter, int direction, Comparator<Feature> subComparator)(Code) | | Parameters: filter - the filter to use to promote the selected features Parameters: direction - SWT.UP to put selected features at the start of the list, SWT.DOWN to put the selected features on the end Parameters: subComparator - this comparator will sort the same-type items. IE selection will all be at the top but sorted by this comparator. |
compare | public int compare(Feature o1, Feature o2)(Code) | | |
|
|