Class GenericPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
GamePanel, LevelPanel, MenuPanel

public abstract class GenericPanel extends JPanel
Abstract class for Panels, with a pre-setted Constructor.
See Also:
  • Constructor Details

    • GenericPanel

      public GenericPanel(SwingViewImpl parent, String backgroundSource)
      Panel Constructor.
      Parameters:
      parent - The Application View.
      backgroundSource - The Panel Background.
  • Method Details

    • getView

      public SwingViewImpl getView()
      View Getter. Returns the View (Parent).
      Returns:
      the view.
    • getBackgroundImage

      public Image getBackgroundImage()
      Background Getter. Returns the BackgroundImage.
      Returns:
      the background image of the panel.