2018-01-13 12:23:34 +01:00
|
|
|
/*
|
2018-10-28 09:10:56 +01:00
|
|
|
* This file is part of Player Analytics (Plan).
|
|
|
|
*
|
|
|
|
* Plan is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License v3 as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Plan is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* along with Plan. If not, see <https://www.gnu.org/licenses/>.
|
2017-11-29 19:57:24 +01:00
|
|
|
*/
|
2019-08-30 22:14:54 +02:00
|
|
|
package com.djrapitops.plan.delivery.rendering.json.graphs.pie;
|
2017-11-29 19:57:24 +01:00
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
2018-01-19 11:26:29 +01:00
|
|
|
* This is a PieChart for any set of PieSlices, thus it is Abstract.
|
2017-11-29 19:57:24 +01:00
|
|
|
*
|
|
|
|
* @author Rsl1122
|
|
|
|
*/
|
2019-11-02 15:28:43 +01:00
|
|
|
public class Pie {
|
2018-01-19 11:26:29 +01:00
|
|
|
|
2018-09-16 16:23:21 +02:00
|
|
|
protected final List<PieSlice> slices;
|
2018-01-19 11:26:29 +01:00
|
|
|
|
2018-09-16 16:23:21 +02:00
|
|
|
public Pie(List<PieSlice> slices) {
|
2018-01-19 11:26:29 +01:00
|
|
|
this.slices = slices;
|
|
|
|
}
|
|
|
|
|
2019-07-06 15:41:17 +02:00
|
|
|
public List<PieSlice> getSlices() {
|
|
|
|
return slices;
|
|
|
|
}
|
2018-06-12 20:28:40 +02:00
|
|
|
}
|