Class MapPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class MapPanel extends JPanel
Panel to hold map gui items for one map
See Also:
  • Constructor Details

    • MapPanel

      public MapPanel(MapData data)
      Create the MapPanel with the given MapData
      Parameters:
      data - The MapData we represent
  • Method Details

    • setVisibility

      public void setVisibility(boolean visiblity)
      Set the visibility checkbox to the given value. Ignore any actions fired from that
      Parameters:
      visiblity - The checkbox value
    • updateUI

      public void updateUI()
      Apply the mapData state to the GUI widgets
      Overrides:
      updateUI in class JPanel
    • getGuiComponents

      public List getGuiComponents()
      Get the GUI components
      Returns:
      a list of the components
    • getMapData

      public MapData getMapData()
      Get the MapData we represent
      Returns:
      The map data