Package org.collebol.engine.gui
Class Panel
java.lang.Object
org.collebol.engine.gui.Panel
- Direct Known Subclasses:
ExamplePanel
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
public int id
-
-
Constructor Details
-
Panel
Panel constructor.- Parameters:
id- the id of the panel.e- the engine instance.
-
-
Method Details
-
showScreenDetails
public void showScreenDetails()Displays screen details, a tool for developing. -
update
public abstract void update() -
paint
public abstract void paint() -
getEngine
-
getCamera
-
setCamera
-
getDT
public float getDT()- Returns:
- delta tile
-
setDT
public void setDT(float DT)
-