sort
public void sort(PCASortColors.PCAColor[] colors,
int first,
int last,
int rowLen)
Sort the row(s). If colors.length > rowLen,
the rows are a group of rows and may be sorted as such.
- Specified by:
sort
in interface PCASortColors.SortRowInterface
- Parameters:
colors
- The entire array of colors being sorted.
first
- First element to process.
last
- One past the last element to process.
colors[last] may not exist.
rowLen
- How long rows are to be in the group.
if last-first is not a multiple of rowLen,
the last row of the group may be shorter.