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
651 B
25 lines
651 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 YearRatingChartGenerator implements ChartGenerator {
|
|
@Override
|
|
public void generateChart(Movie[] movies) {
|
|
List<Movie> movieList = List.of(movies);
|
|
try {
|
|
MovieResultDisplay.generateYearRatingChart(movieList);
|
|
} catch (IOException e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public String getChartName() {
|
|
return "Year Rating Correlation Chart";
|
|
}
|
|
}
|