You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
660 B

package com.crawler.chart.impl;
import com.crawler.chart.ChartGenerator;
import com.crawler.model.Movie;
import com.crawler.ui.MovieResultDisplay;
import java.io.IOException;
import java.util.List;
public class GenreDistributionChartGenerator implements ChartGenerator {
@Override
public void generateChart(Movie[] movies) {
List<Movie> movieList = List.of(movies);
try {
MovieResultDisplay.generateGenreDistributionChart(movieList);
} catch (IOException e) {
e.printStackTrace();
}
}
@Override
public String getChartName() {
return "Genre Distribution Chart";
}
}