Package mekhq.gui

Class StratConTab

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class StratConTab extends CampaignGuiTab
This class contains code relevant to rendering the StratCon ("AtB Campaign State") tab.
See Also:
  • Constructor Details

    • StratConTab

      public StratConTab(CampaignGUI gui, String tabName)
      Creates an instance of the StratConTab.
  • Method Details

    • getStratconPanel

      public StratConPanel getStratconPanel()
    • initTab

      public void initTab()
      Override of the base initTab method. Populates the tab.
      Specified by:
      initTab in class CampaignGuiTab
    • focusOnSector

      public boolean focusOnSector(UUID contractId, int trackIndex)
      Shows the given sector, first switching the contract selector to the sector's contract if it is not the one being viewed. A contract the selector does not list (for example, one in another system) is left alone, as is the current view.
      Parameters:
      contractId - the ID of the contract whose map holds the sector
      trackIndex - the sector's index within that contract's tracks
      Returns:
      true if the selector lists the contract and it is now shown; false if it is not listed (for example, one that has not started yet), in which case nothing changes
      Since:
      0.51.01
    • repaint

      public void repaint()
      Overrides:
      repaint in class Component
    • refreshAll

      public void refreshAll()
      Specified by:
      refreshAll in class CampaignGuiTab
    • tabType

      public MHQTabType tabType()
      Specified by:
      tabType in class CampaignGuiTab
    • updateCampaignState

      public void updateCampaignState()
      Worker function that updates the campaign state section of the info panel with such info as current objective status, VP/SP totals, etc.
    • handleNewDay

      public void handleNewDay(NewDayEvent ev)
    • handleGMMode

      public void handleGMMode(GMModeEvent ev)
    • handle

      public void handle(MHQOptionsChangedEvent ev)
    • handle

      public void handle(MissionRemovedEvent ev)
    • handle

      public void handle(MissionCompletedEvent ev)
    • handle

      public void handle(MissionChangedEvent ev)
    • handle

      public void handle(StratConDeploymentEvent ev)