Class JoglNewtAwtCanvas

java.lang.Object
java.awt.Component
java.awt.Canvas
com.jogamp.newt.awt.NewtCanvasAWT
com.ardor3d.framework.jogl.awt.JoglNewtAwtCanvas
All Implemented Interfaces:
Canvas, NewtWindowContainer, com.jogamp.nativewindow.awt.AWTPrintLifecycle, com.jogamp.nativewindow.NativeSurfaceHolder, com.jogamp.nativewindow.NativeWindowHolder, com.jogamp.nativewindow.OffscreenLayerOption, com.jogamp.nativewindow.WindowClosingProtocol, ImageObserver, MenuContainer, Serializable, Accessible

public class JoglNewtAwtCanvas extends com.jogamp.newt.awt.NewtCanvasAWT implements Canvas, NewtWindowContainer
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • init

      public void init()
      Description copied from interface: Canvas
      Do work to initialize this canvas, generally setting up the associated CanvasRenderer, etc.
      Specified by:
      init in interface Canvas
    • draw

      public void draw(CountDownLatch latch)
      Description copied from interface: Canvas
      Ask the canvas to render itself. Note that this may occur in another thread and therefore a latch is given so the caller may know when the draw has completed.
      Specified by:
      draw in interface Canvas
      Parameters:
      latch - a counter that should be decremented once drawing has completed.
    • getCanvasRenderer

      public JoglCanvasRenderer getCanvasRenderer()
      Specified by:
      getCanvasRenderer in interface Canvas
      Returns:
      the CanvasRenderer associated with this Canvas.
    • getMouseManager

      public MouseManager getMouseManager()
      Specified by:
      getMouseManager in interface Canvas
      Returns:
      the MouseManager associated with this Canvas, if any
    • setMouseManager

      public void setMouseManager(MouseManager manager)
      Description copied from interface: Canvas
      Sets a MouseManager to be associated with this Canvas.
      Specified by:
      setMouseManager in interface Canvas
      Parameters:
      manager - the manager to associate
    • getNewtWindow

      public com.jogamp.newt.opengl.GLWindow getNewtWindow()
      Specified by:
      getNewtWindow in interface NewtWindowContainer
    • setVSyncEnabled

      public void setVSyncEnabled(boolean enabled)