Class WidgetMap

All Implemented Interfaces:
DropTargetListener, MouseListener, MouseMotionListener, EventListener, AutoConfigurable, Buildable, Configurable, GameComponent, PlayerRoster.SideChangeListener, MutablePropertiesContainer, PropertyNameSource, PropertySource, ValidityChecker, Translatable, ImageSearchTarget, SearchTarget, ToolBarComponent, UniqueIdManager.Identifyable

public class WidgetMap extends Map
  • Constructor Details

    • WidgetMap

      public WidgetMap()
  • Method Details

    • setup

      public void setup(boolean show)
      Description copied from class: Map
      When a game is started, create a top-level window, if none exists. When a game is ended, remove all boards from the map.
      Specified by:
      setup in interface GameComponent
      Overrides:
      setup in class Map
      Parameters:
      show - true if a game is starting, false if a game is ending
      See Also:
      GameComponent
    • shouldDockIntoMainWindow

      public boolean shouldDockIntoMainWindow()
      Widget maps are always undocked
      Overrides:
      shouldDockIntoMainWindow in class Map
      Returns:
      whether this map should dock into the main window
    • getAttributeVisibility

      public VisibilityCondition getAttributeVisibility(String name)
      Description copied from class: AbstractConfigurable
      By default, all attributes are visible
      Specified by:
      getAttributeVisibility in interface AutoConfigurable
      Overrides:
      getAttributeVisibility in class Map
      Parameters:
      name - Name (key) of one of this component's attributes
      Returns:
      Visibility condition for the corresponding component
    • getScroll

      public JScrollPane getScroll()