jAER project on SourceForge

net.sf.jaer.util.chart
Class Chart.Renderer

java.lang.Object
  extended by net.sf.jaer.util.chart.Chart.Renderer
All Implemented Interfaces:
java.util.EventListener, javax.media.opengl.GLEventListener
Enclosing class:
Chart

public class Chart.Renderer
extends java.lang.Object
implements javax.media.opengl.GLEventListener

The OpenGL Renderer class for chart objects.


Field Summary
protected  int gridId
           
 
Constructor Summary
Chart.Renderer()
           
 
Method Summary
 void display(javax.media.opengl.GLAutoDrawable drawable)
          Draw the chart view onto OpenGL drawable.
 void displayChanged(javax.media.opengl.GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged)
          Do nothing on changed display.
 void init(javax.media.opengl.GLAutoDrawable drawable)
          Initialize the view for OpenGL drawing.
 void reshape(javax.media.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gridId

protected int gridId
Constructor Detail

Chart.Renderer

public Chart.Renderer()
Method Detail

init

public void init(javax.media.opengl.GLAutoDrawable drawable)
Initialize the view for OpenGL drawing.

Specified by:
init 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

display

public void display(javax.media.opengl.GLAutoDrawable drawable)
Draw the chart view onto OpenGL drawable. The chart is drawn in the rectangular area [0, 0, width-1, height-1].

Specified by:
display in interface javax.media.opengl.GLEventListener

displayChanged

public void displayChanged(javax.media.opengl.GLAutoDrawable drawable,
                           boolean modeChanged,
                           boolean deviceChanged)
Do nothing on changed display.

Specified by:
displayChanged in interface javax.media.opengl.GLEventListener

jAER project on SourceForge