Class SwingEDTAnimator

  • All Implemented Interfaces:
    com.jogamp.opengl.FPSCounter, com.jogamp.opengl.GLAnimatorControl

    public class SwingEDTAnimator
    extends Object
    implements com.jogamp.opengl.GLAnimatorControl
    An FPSAnimator-like class which performs rendering on the Swing EDT.
    Author:
    ulman
    See Also:
    FPSAnimator
    • Constructor Detail

      • SwingEDTAnimator

        public SwingEDTAnimator​(double fps)
    • Method Detail

      • getThread

        public Thread getThread()
        Specified by:
        getThread in interface com.jogamp.opengl.GLAnimatorControl
      • isStarted

        public boolean isStarted()
        Specified by:
        isStarted in interface com.jogamp.opengl.GLAnimatorControl
      • isAnimating

        public boolean isAnimating()
        Specified by:
        isAnimating in interface com.jogamp.opengl.GLAnimatorControl
      • isPaused

        public boolean isPaused()
        Specified by:
        isPaused in interface com.jogamp.opengl.GLAnimatorControl
      • start

        public boolean start()
        Specified by:
        start in interface com.jogamp.opengl.GLAnimatorControl
      • stop

        public boolean stop()
        Specified by:
        stop in interface com.jogamp.opengl.GLAnimatorControl
      • pause

        public boolean pause()
        Specified by:
        pause in interface com.jogamp.opengl.GLAnimatorControl
      • resume

        public boolean resume()
        Specified by:
        resume in interface com.jogamp.opengl.GLAnimatorControl
      • add

        public void add​(com.jogamp.opengl.GLAutoDrawable drawable)
        Specified by:
        add in interface com.jogamp.opengl.GLAnimatorControl
      • remove

        public void remove​(com.jogamp.opengl.GLAutoDrawable drawable)
        Specified by:
        remove in interface com.jogamp.opengl.GLAnimatorControl
      • getUncaughtExceptionHandler

        public com.jogamp.opengl.GLAnimatorControl.UncaughtExceptionHandler getUncaughtExceptionHandler()
        Specified by:
        getUncaughtExceptionHandler in interface com.jogamp.opengl.GLAnimatorControl
      • setUncaughtExceptionHandler

        public void setUncaughtExceptionHandler​(com.jogamp.opengl.GLAnimatorControl.UncaughtExceptionHandler handler)
        Specified by:
        setUncaughtExceptionHandler in interface com.jogamp.opengl.GLAnimatorControl
      • setUpdateFPSFrames

        public void setUpdateFPSFrames​(int frames,
                                       PrintStream out)
        Specified by:
        setUpdateFPSFrames in interface com.jogamp.opengl.FPSCounter
      • resetFPSCounter

        public void resetFPSCounter()
        Specified by:
        resetFPSCounter in interface com.jogamp.opengl.FPSCounter
      • getUpdateFPSFrames

        public int getUpdateFPSFrames()
        Specified by:
        getUpdateFPSFrames in interface com.jogamp.opengl.FPSCounter
      • getFPSStartTime

        public long getFPSStartTime()
        Specified by:
        getFPSStartTime in interface com.jogamp.opengl.FPSCounter
      • getLastFPSUpdateTime

        public long getLastFPSUpdateTime()
        Specified by:
        getLastFPSUpdateTime in interface com.jogamp.opengl.FPSCounter
      • getLastFPSPeriod

        public long getLastFPSPeriod()
        Specified by:
        getLastFPSPeriod in interface com.jogamp.opengl.FPSCounter
      • getLastFPS

        public float getLastFPS()
        Specified by:
        getLastFPS in interface com.jogamp.opengl.FPSCounter
      • getTotalFPSFrames

        public int getTotalFPSFrames()
        Specified by:
        getTotalFPSFrames in interface com.jogamp.opengl.FPSCounter
      • getTotalFPSDuration

        public long getTotalFPSDuration()
        Specified by:
        getTotalFPSDuration in interface com.jogamp.opengl.FPSCounter
      • getTotalFPS

        public float getTotalFPS()
        Specified by:
        getTotalFPS in interface com.jogamp.opengl.FPSCounter