protected int[] createPalette(int size){
switch (m_type) {
case Constants.NOMINAL:
    return ColorLib.getCategoryPalette(size);
case Constants.NUMERICAL:
case Constants.ORDINAL:
default :
  return ColorLib.getGrayscalePalette(size);
}
}

protected int [ ] createPalette ( int size ) { switch ( m_type ) { case Constants . NOMINAL : return ColorLib . getCategoryPalette ( size ) ; case Constants . NUMERICAL : case Constants . ORDINAL : default : return ColorLib . getGrayscalePalette ( size ) ; } }
create a color palette of the requested type and size .
