public class PCASortColors
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PCASortColors.PCAColor |
static class |
PCASortColors.sortAllByGrayScale |
static class |
PCASortColors.sortAllByHue |
static class |
PCASortColors.sortAllByLightness |
static class |
PCASortColors.sortAllByPCA
Compute the primary component (via PCA) and sort the colors by it.
|
static interface |
PCASortColors.SortAllInterface
An interface for sorting all the colors.
|
static class |
PCASortColors.SortRowByGrayScale
Sort a row by the gray scale value of the color.
|
static class |
PCASortColors.SortRowByIdentity
Row sort that does not change the order of the row.
|
static class |
PCASortColors.SortRowByLightness
Sort a row by the hsl lightness value.
|
static class |
PCASortColors.SortRowByPCA
Sort a row by the first component after PCA.
|
static class |
PCASortColors.SortRowBySaturation
Sort a row by the hsl saturation value.
|
static class |
PCASortColors.SortRowBySplitLightness
Sort a row by the hsl lightness value;
but first split row between grayish and colored
|
static interface |
PCASortColors.SortRowInterface
Sort a row of colors.
|
public static void sortColors(PCASortColors.PCAColor[] colors, PCASortColors.SortAllInterface aSort)
colors
- The colors to be sortedaSort
- How to sort the whole collectionpublic static void sortColorsAndRowwise(PCASortColors.PCAColor[] colors, int rowLen, PCASortColors.SortAllInterface aSort, PCASortColors.SortRowInterface rSort)
colors
- The colors to be sortedrowLen
- How long are rowsaSort
- How to sort the whole collectionrSort
- How to sort rows within the collectionpublic static void sortByHue(PCASortColors.PCAColor[] colors)
public static void sortByLightness(PCASortColors.PCAColor[] colors)
public static void sortByGrayScale(PCASortColors.PCAColor[] colors)
public static void sortByPCA(PCASortColors.PCAColor[] colors)
public static void sortByHueAndPCA(PCASortColors.PCAColor[] colors, int rowLen)
public static void sortByHueAndLightness(PCASortColors.PCAColor[] colors, int rowLen)
public static void sortByHueAndGrayScale(PCASortColors.PCAColor[] colors, int rowLen)
public static void sortByHueAndSaturation(PCASortColors.PCAColor[] colors, int rowLen)
public static void sortByHueAndSplitLightness(PCASortColors.PCAColor[] colors, int rowLen)