Package org.swtpra1

Class TournamentView


  • public class TournamentView
    extends java.lang.Object
    Showcases all players and how each of them performed.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.JPanel getPanel()
      Returns the JPanel representing this view.
      void setGames​(Game[] games)
      Gets an array of games, evaluates their results and displays the leaderboard in ordered fashion.
      void update()
      Polls the currently running games and parses the information into the leaderboard.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • update

        public void update()
        Polls the currently running games and parses the information into the leaderboard.
      • setGames

        public void setGames​(Game[] games)
        Gets an array of games, evaluates their results and displays the leaderboard in ordered fashion.
        Parameters:
        games - array of Games (unordered)
      • getPanel

        public javax.swing.JPanel getPanel()
        Returns the JPanel representing this view.
        Returns:
        JPanel object