private Color getSectionColor ( SectionHeader header ) { // color is based on section number int nr = header . getNumber ( ) ; Color sectionColor = colorMap . get ( SECTION_START ) ; // modify the color section number times for ( int i = 1 ; i < nr ; i ++ ) { sectionColor = variate ( sectionColor ) ; } return sectionColor ; }
Generate the color of the given section .