public void addSetter(int i){
  for (  ScatterPlotSetter setter : setterList) {
    if (setter.getIndex() == i) {
      return;
    }
  }
  setterList.add(new ScatterPlotSetter(i));
}

public void addSetter ( int i ) { for ( ScatterPlotSetter setter : setterList ) { if ( setter . getIndex ( ) == i ) { return ; } } setterList . add ( new ScatterPlotSetter ( i ) ) ; }
add a setter with the specified index .
