Class CanvasListener

java.lang.Object
cz.fidentis.analyst.canvas.CanvasListener
All Implemented Interfaces:
com.jogamp.opengl.GLEventListener, EventListener

public class CanvasListener extends Object implements com.jogamp.opengl.GLEventListener
Listener invoked when the OpenGL canvas is initiated, shown, or resized.
  • Constructor Details

    • CanvasListener

      public CanvasListener(Canvas canvas)
      Constructor.
      Parameters:
      canvas - Canvas
      Throws:
      IllegalArgumentException - if the canvas is null
  • Method Details

    • init

      public void init(com.jogamp.opengl.GLAutoDrawable glad)
      Specified by:
      init in interface com.jogamp.opengl.GLEventListener
    • dispose

      public void dispose(com.jogamp.opengl.GLAutoDrawable glad)
      Specified by:
      dispose in interface com.jogamp.opengl.GLEventListener
    • display

      public void display(com.jogamp.opengl.GLAutoDrawable glad)
      Specified by:
      display in interface com.jogamp.opengl.GLEventListener
    • reshape

      public void reshape(com.jogamp.opengl.GLAutoDrawable glad, int x, int y, int width, int height)
      Specified by:
      reshape in interface com.jogamp.opengl.GLEventListener
    • setRecording

      public void setRecording(boolean recording)
    • getCapturedImage

      public BufferedImage getCapturedImage()