net.java.joglutils.msg.test
Class DisplayShelfRenderer

java.lang.Object
  extended by net.java.joglutils.msg.test.DisplayShelfRenderer
All Implemented Interfaces:
EventListener, javax.media.opengl.GLEventListener

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

A test implementing a 3D display shelf component. This renderer is pluggable into any JOGL GLAutoDrawable.

Author:
Kenneth Russell

Constructor Summary
DisplayShelfRenderer(ListModel model)
           
 
Method Summary
 void display(javax.media.opengl.GLAutoDrawable drawable)
           
 void displayChanged(javax.media.opengl.GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged)
           
 int getNumImages()
           
 javax.media.opengl.GLContext getSharedContext()
          Callers must share textures and display lists with this context for correct behavior of this renderer.
 boolean getSingleImageMode()
           
 int getTargetIndex()
           
 void init(javax.media.opengl.GLAutoDrawable drawable)
           
 void reshape(javax.media.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)
           
 void setSingleImageMode(boolean singleImageMode, boolean animateTransition)
           
 void setTargetIndex(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayShelfRenderer

public DisplayShelfRenderer(ListModel model)
Method Detail

getSharedContext

public javax.media.opengl.GLContext getSharedContext()
Callers must share textures and display lists with this context for correct behavior of this renderer. It is used to avoid repeated reloading of textures when resizing the renderer embedded in a GLJPanel.


setSingleImageMode

public void setSingleImageMode(boolean singleImageMode,
                               boolean animateTransition)

getSingleImageMode

public boolean getSingleImageMode()

getNumImages

public int getNumImages()

setTargetIndex

public void setTargetIndex(int index)

getTargetIndex

public int getTargetIndex()

init

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

display

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

reshape

public void reshape(javax.media.opengl.GLAutoDrawable drawable,
                    int x,
                    int y,
                    int width,
                    int height)
Specified by:
reshape in interface javax.media.opengl.GLEventListener

displayChanged

public void displayChanged(javax.media.opengl.GLAutoDrawable drawable,
                           boolean modeChanged,
                           boolean deviceChanged)
Specified by:
displayChanged in interface javax.media.opengl.GLEventListener