List<BrewerPalette> palettesList = CustomPalettesLoader.PALETTESLIST;
for (BrewerPalette brewerPalette : palettesList) {
brewer.registerPalette(brewerPalette);
}
// add a dynamic one that support everything
CustomDynamicPalette customDynamicPalette = new CustomDynamicPalette(
CustomDynamicPalette.TABLE.RAINBOW);
brewer.registerPalette(customDynamicPalette);
customDynamicPalette = new CustomDynamicPalette(
CustomDynamicPalette.TABLE.GREY);
brewer.registerPalette(customDynamicPalette);
}
return brewer;