Class MinimapDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class MinimapDialog extends JDialog
A dialog for displaying a minimap for the given game.
  • As a persistent, reusable dialog that is hidden when closed
  • As a disposable dialog that is destroyed when closed

The dialog manages its position and size through GUIPreferences

See Also:
  • Constructor Details

    • MinimapDialog

      public MinimapDialog(JFrame frame)
      Creates a new MiniMapDialog.
      Parameters:
      frame - the parent frame for this dialog
  • Method Details

    • saveSettings

      public void saveSettings()
      Saves the current size and position of the dialog to preferences. Different settings are stored based on whether the display is in tabbed or non-tabbed mode.
    • processWindowEvent

      protected void processWindowEvent(WindowEvent e)
      Overrides the default window event processing to save settings when the window is deactivated or closing.
      Overrides:
      processWindowEvent in class JDialog
      Parameters:
      e - the window event