public class GLG2DSimpleEventListener extends Object implements GLEventListener
JComponent
and paints it using a GLGraphics2D
. This
object will paint the entire component fully for each frame.
GLG2DHeadlessListener
may also be used to listen for reshapes and
update the size and layout of the painted Swing component.
Constructor and Description |
---|
GLG2DSimpleEventListener(JComponent component) |
Modifier and Type | Method and Description |
---|---|
void |
display(GLAutoDrawable drawable) |
void |
dispose(GLAutoDrawable arg0) |
void |
init(GLAutoDrawable drawable) |
void |
reshape(GLAutoDrawable drawable,
int x,
int y,
int width,
int height) |
public GLG2DSimpleEventListener(JComponent component)
public void display(GLAutoDrawable drawable)
display
in interface GLEventListener
public void init(GLAutoDrawable drawable)
init
in interface GLEventListener
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height)
reshape
in interface GLEventListener
public void dispose(GLAutoDrawable arg0)
dispose
in interface GLEventListener
Copyright © 2010-2013. All Rights Reserved.