public boolean isSelected(String series,String className){
  if (isSelectedBasedOnSeries)   return selectedSeries.contains(series);
 else   return selectedClasses.contains(className);
}

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