Search in sources :

Example 1 with MapWindowController

use of delta.games.lotro.maps.ui.MapWindowController in project lotro-companion by dmorcellet.

the class MainFrameController method doMap.

private void doMap() {
    WindowController controller = _windowsManager.getWindow(MapWindowController.IDENTIFIER);
    if (controller == null) {
        File mapsDir = Config.getInstance().getMapsDir();
        MapsManager mapsManager = new MapsManager(mapsDir);
        mapsManager.load();
        controller = new MapWindowController(mapsManager);
        _windowsManager.registerWindow(controller);
        controller.getWindow().setLocationRelativeTo(getFrame());
    }
    controller.bringToFront();
}
Also used : MapsManager(delta.games.lotro.maps.data.MapsManager) MapWindowController(delta.games.lotro.maps.ui.MapWindowController) File(java.io.File) CharacterLevelWindowController(delta.games.lotro.gui.stats.levelling.CharacterLevelWindowController) ReputationSynopsisWindowController(delta.games.lotro.gui.stats.reputation.synopsis.ReputationSynopsisWindowController) WarbandsWindowController(delta.games.lotro.gui.stats.warbands.WarbandsWindowController) WindowController(delta.common.ui.swing.windows.WindowController) DefaultWindowController(delta.common.ui.swing.windows.DefaultWindowController) DeedsExplorerWindowController(delta.games.lotro.gui.deed.DeedsExplorerWindowController) MapWindowController(delta.games.lotro.maps.ui.MapWindowController) CraftingSynopsisWindowController(delta.games.lotro.gui.stats.crafting.synopsis.CraftingSynopsisWindowController)

Aggregations

DefaultWindowController (delta.common.ui.swing.windows.DefaultWindowController)1 WindowController (delta.common.ui.swing.windows.WindowController)1 DeedsExplorerWindowController (delta.games.lotro.gui.deed.DeedsExplorerWindowController)1 CraftingSynopsisWindowController (delta.games.lotro.gui.stats.crafting.synopsis.CraftingSynopsisWindowController)1 CharacterLevelWindowController (delta.games.lotro.gui.stats.levelling.CharacterLevelWindowController)1 ReputationSynopsisWindowController (delta.games.lotro.gui.stats.reputation.synopsis.ReputationSynopsisWindowController)1 WarbandsWindowController (delta.games.lotro.gui.stats.warbands.WarbandsWindowController)1 MapsManager (delta.games.lotro.maps.data.MapsManager)1 MapWindowController (delta.games.lotro.maps.ui.MapWindowController)1 File (java.io.File)1