Package org.jbox2d.testbed.framework
Interface TestbedPanel
-
- All Known Implementing Classes:
TestPanelJ2D
public interface TestbedPanel
A TestbedPanel encapsulates the graphical panel displayed to the user. Also it is responsible for populating panel-specific data in the model (like panel width).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addKeyListener(java.awt.event.KeyListener argListener)
Adds a key listenervoid
addMouseListener(java.awt.event.MouseListener argListener)
Adds a mouse listenervoid
addMouseMotionListener(java.awt.event.MouseMotionListener argListener)
Adds a mouse motion listenerDebugDraw
getDebugDraw()
Gets the display-specific debug drawvoid
grabFocus()
void
paintScreen()
Paints the rendered world to the screenboolean
render()
Renders the world
-
-
-
Method Detail
-
addKeyListener
void addKeyListener(java.awt.event.KeyListener argListener)
Adds a key listener- Parameters:
argListener
-
-
addMouseListener
void addMouseListener(java.awt.event.MouseListener argListener)
Adds a mouse listener- Parameters:
argListener
-
-
addMouseMotionListener
void addMouseMotionListener(java.awt.event.MouseMotionListener argListener)
Adds a mouse motion listener- Parameters:
argListener
-
-
grabFocus
void grabFocus()
-
getDebugDraw
DebugDraw getDebugDraw()
Gets the display-specific debug draw- Returns:
-
render
boolean render()
Renders the world- Returns:
- if the renderer is ready for drawing
-
paintScreen
void paintScreen()
Paints the rendered world to the screen
-
-