public abstract class GLDrawableComponent
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | GLDrawableComponent.GLDrawableCanvasWrapper for a GLCanvas | 
| static class  | GLDrawableComponent.GLDrawableJPanelWrapper for a GLJPanel | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addGLEventListener(com.jogamp.opengl.GLEventListener listener)Adds a listener to the end of the underlying drawable's queue | 
| void | addKeyListener(java.awt.event.KeyListener l)Adds a key listener to the underlying component | 
| void | addMouseListener(java.awt.event.MouseListener l)Adds a mouse listener to the end of the underlying component's queue | 
| void | addMouseMotionListener(java.awt.event.MouseMotionListener l)Adds a mouse motion listener to the underlying component | 
| void | addMouseWheelListener(java.awt.event.MouseWheelListener l)Adds a mouse wheel listener to the underlying component | 
| static GLDrawableComponent | create(com.jogamp.opengl.awt.GLCanvas canvas)Creates a GLAutoDrawable and Component wrapper for a GLCanvas | 
| static GLDrawableComponent | create(GLJPanel panel)Creates a GLAutoDrawable and Component wrapper for a GLJPanel | 
| void | destroy()Destroys all resources associated with the underlying drawable | 
| void | display()Causes OpenGL rendering to be performed | 
| boolean | getAutoSwapBufferMode()Indicates whether automatic buffer swapping is enabled | 
| java.awt.Component | getComponent()Returns the AWT Component | 
| com.jogamp.opengl.GLAutoDrawable | getDrawable()Returns the auto-drawable component | 
| java.awt.Graphics | getGraphics()Creates a graphics context for the underlying component | 
| int | getHeight()Gets the pixel height of the underlying AWT component | 
| java.awt.event.KeyListener[] | getKeyListeners()Returns an array of all key listeners registered with the underlying component | 
| java.awt.Point | getLocationOnScreen()Gets the top-left corner location of the component | 
| java.awt.Dimension | getMaximumSize()Gets the maximum size for the underlying AWT component | 
| java.awt.Dimension | getMinimumSize()Gets the minimum size for the underlying AWT component | 
| java.awt.Dimension | getPreferredSize()Gets the preferred size for the underlying AWT component | 
| java.awt.Dimension | getSize()Gets the size of the underlying AWT component | 
| int | getSurfaceHeight()Gets the real pixel height of the underlying GLAutoDrawable. | 
| int | getSurfaceWidth()Gets the real pixel width of the underlying GLAutoDrawable. | 
| int | getWidth()Gets the pixel width of the underlying AWT component | 
| int | getX()Gets the x component of the origin of the underlying AWT component | 
| int | getY()Gets the y component of the origin of the underlying AWT component | 
| boolean | isVisible()Visibility of underlying Java AWT component | 
| void | paint(java.awt.Graphics graphics)Paints the underlying AWT component | 
| com.jogamp.opengl.GLEventListener | removeGLEventListener(com.jogamp.opengl.GLEventListener listener)Removes a listener from the underlying drawable's queue | 
| void | removeKeyListener(java.awt.event.KeyListener l)Removes a key listener from the underlying component | 
| void | removeMouseListener(java.awt.event.MouseListener l)Removes a mouse listener from the underlying component | 
| void | removeMouseMotionListener(java.awt.event.MouseMotionListener l)Removes a mouse motion listener from the underlying component | 
| void | removeMouseWheelListener(java.awt.event.MouseWheelListener l)Removes a mouse wheel listener from the underlying component | 
| void | repaint()Repaints the AWT component | 
| void | setAutoSwapBufferMode(boolean enable)Enables or disables automatic buffer swapping | 
| void | setCursor(java.awt.Cursor cursor)Sets the cursor image for the underlying AWT component | 
| void | setMaximumSize(java.awt.Dimension maximumSize)Sets the maximum size for the underlying AWT component | 
| void | setMinimumSize(java.awt.Dimension minimumSize)Sets the minimum size for the underlying AWT component | 
| void | setPreferredSize(java.awt.Dimension preferredSize)Sets the preferred size for the underlying AWT component | 
| void | setSize(java.awt.Dimension size)Resizes the underlying AWT component | 
| void | setSize(int width,
       int height)Resizes the underlying AWT component | 
| abstract void | setSurfaceScale(float[] scale) | 
public boolean isVisible()
Component.isVisible()public com.jogamp.opengl.GLAutoDrawable getDrawable()
public java.awt.Component getComponent()
public void repaint()
Component.repaint()public void display()
GLAutoDrawable.display()public void paint(java.awt.Graphics graphics)
Component.paint(Graphics)public java.awt.Graphics getGraphics()
Component.getGraphics()public void setPreferredSize(java.awt.Dimension preferredSize)
preferredSize - width/height dimensionComponent.setPreferredSize(Dimension)public java.awt.Dimension getPreferredSize()
Component.getPreferredSize()public void setMinimumSize(java.awt.Dimension minimumSize)
minimumSize - width/height dimensionComponent.setMinimumSize(Dimension)public java.awt.Dimension getMinimumSize()
Component.getMinimumSize()public void setMaximumSize(java.awt.Dimension maximumSize)
maximumSize - width/height dimensionComponent.setMaximumSize(Dimension)public java.awt.Dimension getMaximumSize()
Component.getMaximumSize()public void setSize(int width,
                    int height)
width - pixel widthheight - pixel heightComponent.setSize(int, int)public void setSize(java.awt.Dimension size)
size - width/height dimensionComponent.setSize(Dimension)public int getWidth()
Component.getWidth()public int getHeight()
Component.getHeight()public java.awt.Dimension getSize()
public int getSurfaceWidth()
GLDrawable.getSurfaceWidth()public int getSurfaceHeight()
GLDrawable.getSurfaceHeight()public int getX()
Component.getY()public int getY()
Component.getX()public java.awt.Point getLocationOnScreen()
Component.getLocationOnScreen()public void setCursor(java.awt.Cursor cursor)
cursor - cursor constantComponent.setCursor(Cursor)public void addGLEventListener(com.jogamp.opengl.GLEventListener listener)
listener - event listener to addGLAutoDrawable.addGLEventListener(GLEventListener)public com.jogamp.opengl.GLEventListener removeGLEventListener(com.jogamp.opengl.GLEventListener listener)
listener - event listener to removeGLAutoDrawable.removeGLEventListener(GLEventListener)public void addMouseListener(java.awt.event.MouseListener l)
l - mouse listener to addComponent.addMouseListener(MouseListener)public void removeMouseListener(java.awt.event.MouseListener l)
l - mouse listener to removeComponent.removeMouseListener(MouseListener)public void addMouseMotionListener(java.awt.event.MouseMotionListener l)
l - mouse motion listenerComponent.addMouseMotionListener(MouseMotionListener)public void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
l - mouse motion listener to removeComponent.removeMouseMotionListener(MouseMotionListener)public void addMouseWheelListener(java.awt.event.MouseWheelListener l)
l - mouse wheel listener to addComponent.addMouseWheelListener(MouseWheelListener)public void removeMouseWheelListener(java.awt.event.MouseWheelListener l)
l - mouse wheel listener to removeComponent.removeMouseWheelListener(MouseWheelListener)public void addKeyListener(java.awt.event.KeyListener l)
l - key listener to addComponent.addKeyListener(KeyListener)public void removeKeyListener(java.awt.event.KeyListener l)
l - key listener to removeComponent.removeKeyListener(KeyListener)public java.awt.event.KeyListener[] getKeyListeners()
Component.getKeyListeners()public void setAutoSwapBufferMode(boolean enable)
GLAutoDrawable.setAutoSwapBufferMode(boolean)public boolean getAutoSwapBufferMode()
GLAutoDrawable.getAutoSwapBufferMode()public void destroy()
GLAutoDrawable.destroy()public static GLDrawableComponent create(GLJPanel panel)
panel - panel to wrappublic static GLDrawableComponent create(com.jogamp.opengl.awt.GLCanvas canvas)
canvas - canvas to wrappublic abstract void setSurfaceScale(float[] scale)