@Singleton
public class HtmlTables
extends java.lang.Object
Constructor and Description |
---|
HtmlTables(PlanConfig config,
Formatters formatters) |
Modifier and Type | Method and Description |
---|---|
TableContainer |
commandUseTable(DataContainer container)
Create a new Command usage table.
|
TableContainer |
deathsTable(java.util.List<PlayerDeath> deaths)
Create a new Deaths table.
|
TableContainer |
geoInfoTable(java.util.List<GeoInfo> geoInfo)
Create a new GeoInfo table.
|
TableContainer |
killsTable(java.util.List<PlayerKill> kills,
java.lang.String color)
Create a new Kill table.
|
TableContainer |
nicknameTable(java.util.List<Nickname> nicknames,
java.util.Map<java.util.UUID,java.lang.String> serverNames)
Create a new Nickname table.
|
TableContainer |
pingTable(java.util.Map<java.lang.String,java.util.List<Ping>> pingPerCountry)
Create a new Country - Ping table.
|
TableContainer |
playerSessionTable(java.lang.String playerName,
java.util.List<Session> sessions)
Create a new Session table for a player.
|
TableContainer |
playerTableForPlayersPage(java.util.List<PlayerContainer> players)
Create a Player table for a players page.
|
TableContainer |
playerTableForServerPage(java.util.List<PlayerContainer> players)
Create a Player table for a server.
|
TableContainer |
pluginPlayersTable(java.util.Map<PluginData,AnalysisContainer> containers,
java.util.Collection<PlayerContainer> players)
Create a new Player table that contains Plugin Data.
|
TableContainer |
serverSessionTable(java.util.Map<java.util.UUID,java.lang.String> playerNames,
java.util.List<Session> sessions)
Create a new Session table for a server.
|
@Inject public HtmlTables(PlanConfig config, Formatters formatters)
public TableContainer commandUseTable(DataContainer container)
container
- Container that supports ServerKeys.COMMAND_USAGE.CommandUseTable
.public TableContainer deathsTable(java.util.List<PlayerDeath> deaths)
deaths
- List of PlayerDeath
s to be added to the table.DeathsTable
.public TableContainer geoInfoTable(java.util.List<GeoInfo> geoInfo)
geoInfo
- List of GeoInfo
to be added to the table.GeoInfoTable
.public TableContainer killsTable(java.util.List<PlayerKill> kills, java.lang.String color)
kills
- List of PlayerKill
s to be added to the table.color
- Color the table header should be.KillsTable
.public TableContainer nicknameTable(java.util.List<Nickname> nicknames, java.util.Map<java.util.UUID,java.lang.String> serverNames)
nicknames
- List of Nickname
s to be added to the table.serverNames
- Names of the servers, for the server column.NicknameTable
.public TableContainer pingTable(java.util.Map<java.lang.String,java.util.List<Ping>> pingPerCountry)
pingPerCountry
- Map of Ping
s sorted by country names.PingTable
.public TableContainer playerSessionTable(java.lang.String playerName, java.util.List<Session> sessions)
playerName
- Name of the player.sessions
- List of Session
s the player has.PlayerSessionTable
.public TableContainer serverSessionTable(java.util.Map<java.util.UUID,java.lang.String> playerNames, java.util.List<Session> sessions)
playerNames
- Map of UUID - Name pairs of the players.sessions
- List of Session
s that occurred on the server.ServerSessionTable
.public TableContainer playerTableForServerPage(java.util.List<PlayerContainer> players)
players
- List of PlayerContainer
s of players who have played on the server.PlayersTable
.public TableContainer playerTableForPlayersPage(java.util.List<PlayerContainer> players)
players
- List of PlayerContainer
s of players.PlayersTable
.public TableContainer pluginPlayersTable(java.util.Map<PluginData,AnalysisContainer> containers, java.util.Collection<PlayerContainer> players)
containers
- PluginData AnalysisContainers.players
- List of PlayerContainer
s of players.PluginPlayersTable
.