graphics
Class HelpOverlay

java.lang.Object
  extended by graphics.HelpOverlay
All Implemented Interfaces:
EventListener, javax.media.opengl.GLEventListener

public class HelpOverlay
extends Object
implements javax.media.opengl.GLEventListener

Complete documetnation at nehe.gamedev.net

Author:
Pepijn Van Eeckhoudt

Field Summary
private static int CHAR_HEIGHT
           
private  javax.media.opengl.glu.GLU glu
           
private  com.sun.opengl.util.GLUT glut
           
private static int INDENT
           
private static String KEYBOARD_CONTROLS
           
private  List keyboardEntries
           
private static String MOUSE_CONTROLS
           
private  List mouseEntries
           
private static int OFFSET
           
private  boolean visible
           
 
Constructor Summary
HelpOverlay()
           
 
Method Summary
 void display(javax.media.opengl.GLAutoDrawable glDrawable)
           
 void displayChanged(javax.media.opengl.GLAutoDrawable glDrawable, boolean b, boolean b1)
           
 void init(javax.media.opengl.GLAutoDrawable glDrawable)
           
 boolean isVisible()
           
 void registerKeyStroke(KeyStroke keyStroke, String description)
           
 void registerMouseEvent(int id, int modifiers, String description)
           
 void reshape(javax.media.opengl.GLAutoDrawable glDrawable, int i, int i1, int i2, int i3)
           
 void setVisible(boolean visible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyboardEntries

private List keyboardEntries

mouseEntries

private List mouseEntries

visible

private boolean visible

glut

private com.sun.opengl.util.GLUT glut

glu

private javax.media.opengl.glu.GLU glu

CHAR_HEIGHT

private static final int CHAR_HEIGHT
See Also:
Constant Field Values

OFFSET

private static final int OFFSET
See Also:
Constant Field Values

INDENT

private static final int INDENT
See Also:
Constant Field Values

KEYBOARD_CONTROLS

private static final String KEYBOARD_CONTROLS
See Also:
Constant Field Values

MOUSE_CONTROLS

private static final String MOUSE_CONTROLS
See Also:
Constant Field Values
Constructor Detail

HelpOverlay

public HelpOverlay()
Method Detail

isVisible

public boolean isVisible()

setVisible

public void setVisible(boolean visible)

display

public void display(javax.media.opengl.GLAutoDrawable glDrawable)
Specified by:
display in interface javax.media.opengl.GLEventListener

displayChanged

public void displayChanged(javax.media.opengl.GLAutoDrawable glDrawable,
                           boolean b,
                           boolean b1)
Specified by:
displayChanged in interface javax.media.opengl.GLEventListener

init

public void init(javax.media.opengl.GLAutoDrawable glDrawable)
Specified by:
init in interface javax.media.opengl.GLEventListener

reshape

public void reshape(javax.media.opengl.GLAutoDrawable glDrawable,
                    int i,
                    int i1,
                    int i2,
                    int i3)
Specified by:
reshape in interface javax.media.opengl.GLEventListener

registerKeyStroke

public void registerKeyStroke(KeyStroke keyStroke,
                              String description)

registerMouseEvent

public void registerMouseEvent(int id,
                               int modifiers,
                               String description)