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).
- Author:
- Daniel Murphy
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeyListener(KeyListener argListener) Adds a key listenervoidaddMouseListener(MouseListener argListener) Adds a mouse listenervoidaddMouseMotionListener(MouseMotionListener argListener) Adds a mouse motion listenerGets the display-specific debug drawvoidvoidPaints the rendered world to the screenbooleanrender()Renders the world
-
Method Details
-
addKeyListener
-
addMouseListener
-
addMouseMotionListener
Adds a mouse motion listener- Parameters:
argListener-
-
grabFocus
void grabFocus() -
getDebugDraw
-
render
boolean render()Renders the world- Returns:
- if the renderer is ready for drawing
-
paintScreen
void paintScreen()Paints the rendered world to the screen
-