question: public boolean isSelected ( String series , String className ) { if ( isSelectedBasedOnSeries ) return selectedSeries . contains ( series ) ; else return selectedClasses . contains ( className ) ; }
target:  is series selected and  isSelectedBasedOnSeries==true or className selected and isSelectedBasedOnSeries==false? Logic is flipped if transposed is set