class NewVersusFixedPieChart {

    public PieChartModel create(final Report newIssues, final Report outstandingIssues, final Report fixedIssues) {
        PieChartModel model = new PieChartModel(Messages.NewVersusFixed_Name());

        model.add(new PieData(Messages.New_Warnings_Short(), newIssues.size()), Palette.RED);
        model.add(new PieData(Messages.Outstanding_Warnings_Short(), outstandingIssues.size()), Palette.YELLOW);
        model.add(new PieData(Messages.Fixed_Warnings_Short(), fixedIssues.size()), Palette.GREEN);

        return model;
    }

}