Search in sources :

Example 1 with MultipleToonsLevellingStats

use of delta.games.lotro.stats.level.MultipleToonsLevellingStats in project lotro-companion by dmorcellet.

the class MainTestLevellingStats method main.

/**
 * Basic main method for test.
 * @param args Not used.
 */
public static void main(String[] args) {
    LotroTestUtils utils = new LotroTestUtils();
    List<CharacterFile> toons = utils.getAllFiles();
    MultipleToonsLevellingStats stats = new MultipleToonsLevellingStats();
    // CharacterFile toon=utils.getMainToon();
    for (CharacterFile toon : toons) {
        stats.addToon(toon);
    }
    JFrame f = new JFrame();
    CharacterLevelChartController controller = new CharacterLevelChartController(stats);
    JPanel panel = controller.getPanel();
    f.getContentPane().add(panel);
    f.pack();
    f.setVisible(true);
    f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
}
Also used : JPanel(javax.swing.JPanel) CharacterLevelChartController(delta.games.lotro.gui.stats.levelling.CharacterLevelChartController) LotroTestUtils(delta.games.lotro.character.log.LotroTestUtils) JFrame(javax.swing.JFrame) MultipleToonsLevellingStats(delta.games.lotro.stats.level.MultipleToonsLevellingStats) CharacterFile(delta.games.lotro.character.CharacterFile)

Aggregations

CharacterFile (delta.games.lotro.character.CharacterFile)1 LotroTestUtils (delta.games.lotro.character.log.LotroTestUtils)1 CharacterLevelChartController (delta.games.lotro.gui.stats.levelling.CharacterLevelChartController)1 MultipleToonsLevellingStats (delta.games.lotro.stats.level.MultipleToonsLevellingStats)1 JFrame (javax.swing.JFrame)1 JPanel (javax.swing.JPanel)1