ssmith.opengl.menu
Class GLMenuMultiToggle

java.lang.Object
  extended by ssmith.opengl.menu.GLMenuItem
      extended by ssmith.opengl.menu.GLMenuMultiToggle

public class GLMenuMultiToggle
extends GLMenuItem


Field Summary
 
Fields inherited from class ssmith.opengl.menu.GLMenuItem
font, menu, menu_text, selectable
 
Constructor Summary
GLMenuMultiToggle(java.lang.String text)
           
 
Method Summary
 void addOption(java.lang.String text, boolean selected)
           
 void draw(Canvas3D canvas, net.java.games.jogl.GL gl, net.java.games.jogl.GLU glu, int font, int x, int y)
           
 int getSelectedOption()
           
 void itemSelected()
           
 void receivedChar(java.awt.event.KeyEvent e)
           
 
Methods inherited from class ssmith.opengl.menu.GLMenuItem
isSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLMenuMultiToggle

public GLMenuMultiToggle(java.lang.String text)
Method Detail

addOption

public void addOption(java.lang.String text,
                      boolean selected)

getSelectedOption

public int getSelectedOption()

itemSelected

public void itemSelected()
Specified by:
itemSelected in class GLMenuItem

receivedChar

public void receivedChar(java.awt.event.KeyEvent e)
Overrides:
receivedChar in class GLMenuItem

draw

public void draw(Canvas3D canvas,
                 net.java.games.jogl.GL gl,
                 net.java.games.jogl.GLU glu,
                 int font,
                 int x,
                 int y)
Specified by:
draw in class GLMenuItem