public boolean contains(DataSource source){
  return sources.contains(source);
}

public boolean contains ( DataSource source ) { return sources . contains ( source ) ; }
returns whether the specified data source was added to the legend .
