Class Panel

java.lang.Object
org.collebol.client.gui.Panel
Direct Known Subclasses:
ExamplePanel

public abstract class Panel extends Object
The Panel class represents a user interface panel in a window. It is an abstract class that provides the basic structure and functionality for a Panel.

Each panel has an id, a camera and references to a window.

Usage:

     MyPanel panel = new MyPanel(id, engine);
     engine.getWindow().registerPanel(panel); //register panel at the window.
 
Since:
1.0-dev
Author:
ColleBol - contact@collebol.org
  • Field Details

    • id

      public int id
  • Constructor Details

    • Panel

      public Panel(int id, EJGEngine e)
      Panel constructor.
      Parameters:
      id - the id of the panel.
      e - the engine instance.
  • Method Details

    • showScreenDetails

      public void showScreenDetails(float size)
      Displays screen details, a tool for developing.
    • update

      public abstract void update()
    • paint

      public abstract void paint()
    • getEngine

      public EJGEngine getEngine()
    • getCamera

      public Camera getCamera()
    • setCamera

      public void setCamera(Camera camera)
    • getDT

      public float getDT()
      Returns:
      delta tile
    • setDT

      public void setDT(float DT)
    • getCurrentFPS

      public int getCurrentFPS()
    • setCurrentFPS

      public void setCurrentFPS(int currentFPS)