question: 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 ) ; } }
target:  Create a color palette of the requested type and size.