|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jaer.graphics.DisplayMethod
public abstract class DisplayMethod
A abstract class that displays AE data in a ChipCanvas using OpenGL.
| Field Summary | |
|---|---|
protected Chip2D |
chip
|
protected ChipCanvas |
chipCanvas
|
protected javax.media.opengl.glu.GLU |
glu
|
protected com.sun.opengl.util.GLUT |
glut
|
protected java.util.logging.Logger |
log
|
protected ChipCanvas.Zoom |
zoom
|
| Constructor Summary | |
|---|---|
DisplayMethod(ChipCanvas parent)
Creates a new instance of DisplayMethod |
|
| Method Summary | |
|---|---|
void |
addAnnotator(FrameAnnotater annotator)
add an annotator to the drawn canvas. |
abstract void |
display(javax.media.opengl.GLAutoDrawable drawable)
subclasses implmeent this display method to actually render. |
java.util.ArrayList<FrameAnnotater> |
getAnnotators()
|
java.lang.String |
getDescription()
|
javax.swing.JMenuItem |
getMenuItem()
|
Chip2DRenderer |
getRenderer()
|
void |
removeAllAnnotators()
removes all annotators |
void |
removeAnnotator(FrameAnnotater annotator)
removes an annotator to the drawn canvas. |
void |
setAnnotators(java.util.ArrayList<FrameAnnotater> annotators)
|
void |
setMenuItem(javax.swing.JMenuItem menuItem)
|
void |
setRenderer(Chip2DRenderer renderer)
|
javax.media.opengl.GL |
setupGL(javax.media.opengl.GLAutoDrawable drawable)
This utility method sets up the gl context for rendering. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ChipCanvas chipCanvas
protected com.sun.opengl.util.GLUT glut
protected javax.media.opengl.glu.GLU glu
protected Chip2D chip
protected ChipCanvas.Zoom zoom
protected java.util.logging.Logger log
| Constructor Detail |
|---|
public DisplayMethod(ChipCanvas parent)
parent - the containing ChipCanvas| Method Detail |
|---|
public javax.media.opengl.GL setupGL(javax.media.opengl.GLAutoDrawable drawable)
drawable - the drawable passed in.
public abstract void display(javax.media.opengl.GLAutoDrawable drawable)
drawable - the GL contextpublic java.lang.String getDescription()
public javax.swing.JMenuItem getMenuItem()
public void setMenuItem(javax.swing.JMenuItem menuItem)
public Chip2DRenderer getRenderer()
public void setRenderer(Chip2DRenderer renderer)
public java.util.ArrayList<FrameAnnotater> getAnnotators()
public void setAnnotators(java.util.ArrayList<FrameAnnotater> annotators)
public void addAnnotator(FrameAnnotater annotator)
annotator - the object that will annotate the frame datapublic void removeAnnotator(FrameAnnotater annotator)
annotator - the object that will annotate the displayed datapublic void removeAllAnnotators()
|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||