Class FPanelEchap

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FPanelEchap extends FPanel
Escap panel.
Used to pause game.
Author:
Hydrolien
See Also:
  • Field Details

    • tb

      private FButton[] tb
    • visible

      private boolean visible
  • Constructor Details

    • FPanelEchap

      public FPanelEchap()
      Main constructor that set not visible.
  • Method Details

    • build

      public void build()
      standard build methode. Disable all other panel #38; print this one with the 5 button.
    • setTb

      public void setTb(FButton[] tbTemp)
    • getVisible

      public boolean getVisible()
    • isOn

      public boolean isOn()
    • paintComponent

      public void paintComponent(Graphics g)
      standard paint methode.
      Overrides:
      paintComponent in class FPanel
    • setVisible

      public void setVisible(boolean b)
      Set FPanelEchap visible.
      It Override Component.setVisible() but also build panel if needed & update FPanelSup size.
      Overrides:
      setVisible in class JComponent
    • estContruit

      public boolean estContruit()
      Return true if only FPanelEchap button sould be enable.
    • getSaveName

      public String getSaveName(String defaultName)
      Ask save name in gui.
      Parameters:
      defaultName - the default save name