public class GLG2DHeadlessListener extends Object implements GLEventListener
This will initialize the component as if it was part of a Swing hierarchy on
the first call to init(GLDrawable)
. This will listen for reshape
events and ensure the component being painted fills the entire canvas. This
is useful when painting a Swing component into a NEWT window and the Swing
component takes up the entire NEWT frame.
Constructor and Description |
---|
GLG2DHeadlessListener(JComponent component) |
Modifier and Type | Method and Description |
---|---|
void |
display(GLAutoDrawable drawable) |
void |
dispose(GLAutoDrawable drawable) |
void |
init(GLAutoDrawable drawable) |
void |
reshape(GLAutoDrawable drawable,
int x,
int y,
int width,
int height) |
public GLG2DHeadlessListener(JComponent component)
public void init(GLAutoDrawable drawable)
init
in interface GLEventListener
public void dispose(GLAutoDrawable drawable)
dispose
in interface GLEventListener
public void display(GLAutoDrawable drawable)
display
in interface GLEventListener
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height)
reshape
in interface GLEventListener
Copyright © 2010-2013. All Rights Reserved.