Search in sources :

Example 1 with WorldAliasSettings

use of com.djrapitops.plan.settings.config.WorldAliasSettings in project Plan by plan-player-analytics.

the class PieGraphFactory method worldPie.

public WorldPie worldPie(WorldTimes worldTimes) {
    WorldAliasSettings worldAliasSettings = config.getWorldAliasSettings();
    Map<String, Long> playtimePerAlias = worldAliasSettings.getPlaytimePerAlias(worldTimes);
    Map<String, GMTimes> gmTimesPerAlias = worldAliasSettings.getGMTimesPerAlias(worldTimes);
    String[] colors = theme.getPieColors(ThemeVal.GRAPH_WORLD_PIE);
    boolean orderByPercentage = config.isTrue(DisplaySettings.ORDER_WORLD_PIE_BY_PERCENTAGE);
    return new WorldPie(playtimePerAlias, gmTimesPerAlias, colors, orderByPercentage);
}
Also used : GMTimes(com.djrapitops.plan.gathering.domain.GMTimes) WorldAliasSettings(com.djrapitops.plan.settings.config.WorldAliasSettings)

Aggregations

GMTimes (com.djrapitops.plan.gathering.domain.GMTimes)1 WorldAliasSettings (com.djrapitops.plan.settings.config.WorldAliasSettings)1