Class SwingEDTAnimator
- java.lang.Object
-
- com.metsci.glimpse.core.support.swing.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 Summary
Constructors Constructor Description SwingEDTAnimator(double fps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(com.jogamp.opengl.GLAutoDrawable drawable)longgetFPSStartTime()floatgetLastFPS()longgetLastFPSPeriod()longgetLastFPSUpdateTime()ThreadgetThread()floatgetTotalFPS()longgetTotalFPSDuration()intgetTotalFPSFrames()com.jogamp.opengl.GLAnimatorControl.UncaughtExceptionHandlergetUncaughtExceptionHandler()intgetUpdateFPSFrames()booleanisAnimating()booleanisPaused()booleanisStarted()booleanpause()voidremove(com.jogamp.opengl.GLAutoDrawable drawable)voidresetFPSCounter()booleanresume()voidsetUncaughtExceptionHandler(com.jogamp.opengl.GLAnimatorControl.UncaughtExceptionHandler handler)voidsetUpdateFPSFrames(int frames, PrintStream out)booleanstart()booleanstop()
-
-
-
Method Detail
-
getThread
public Thread getThread()
- Specified by:
getThreadin interfacecom.jogamp.opengl.GLAnimatorControl
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfacecom.jogamp.opengl.GLAnimatorControl
-
isAnimating
public boolean isAnimating()
- Specified by:
isAnimatingin interfacecom.jogamp.opengl.GLAnimatorControl
-
isPaused
public boolean isPaused()
- Specified by:
isPausedin interfacecom.jogamp.opengl.GLAnimatorControl
-
start
public boolean start()
- Specified by:
startin interfacecom.jogamp.opengl.GLAnimatorControl
-
stop
public boolean stop()
- Specified by:
stopin interfacecom.jogamp.opengl.GLAnimatorControl
-
pause
public boolean pause()
- Specified by:
pausein interfacecom.jogamp.opengl.GLAnimatorControl
-
resume
public boolean resume()
- Specified by:
resumein interfacecom.jogamp.opengl.GLAnimatorControl
-
add
public void add(com.jogamp.opengl.GLAutoDrawable drawable)
- Specified by:
addin interfacecom.jogamp.opengl.GLAnimatorControl
-
remove
public void remove(com.jogamp.opengl.GLAutoDrawable drawable)
- Specified by:
removein interfacecom.jogamp.opengl.GLAnimatorControl
-
getUncaughtExceptionHandler
public com.jogamp.opengl.GLAnimatorControl.UncaughtExceptionHandler getUncaughtExceptionHandler()
- Specified by:
getUncaughtExceptionHandlerin interfacecom.jogamp.opengl.GLAnimatorControl
-
setUncaughtExceptionHandler
public void setUncaughtExceptionHandler(com.jogamp.opengl.GLAnimatorControl.UncaughtExceptionHandler handler)
- Specified by:
setUncaughtExceptionHandlerin interfacecom.jogamp.opengl.GLAnimatorControl
-
setUpdateFPSFrames
public void setUpdateFPSFrames(int frames, PrintStream out)- Specified by:
setUpdateFPSFramesin interfacecom.jogamp.opengl.FPSCounter
-
resetFPSCounter
public void resetFPSCounter()
- Specified by:
resetFPSCounterin interfacecom.jogamp.opengl.FPSCounter
-
getUpdateFPSFrames
public int getUpdateFPSFrames()
- Specified by:
getUpdateFPSFramesin interfacecom.jogamp.opengl.FPSCounter
-
getFPSStartTime
public long getFPSStartTime()
- Specified by:
getFPSStartTimein interfacecom.jogamp.opengl.FPSCounter
-
getLastFPSUpdateTime
public long getLastFPSUpdateTime()
- Specified by:
getLastFPSUpdateTimein interfacecom.jogamp.opengl.FPSCounter
-
getLastFPSPeriod
public long getLastFPSPeriod()
- Specified by:
getLastFPSPeriodin interfacecom.jogamp.opengl.FPSCounter
-
getLastFPS
public float getLastFPS()
- Specified by:
getLastFPSin interfacecom.jogamp.opengl.FPSCounter
-
getTotalFPSFrames
public int getTotalFPSFrames()
- Specified by:
getTotalFPSFramesin interfacecom.jogamp.opengl.FPSCounter
-
getTotalFPSDuration
public long getTotalFPSDuration()
- Specified by:
getTotalFPSDurationin interfacecom.jogamp.opengl.FPSCounter
-
getTotalFPS
public float getTotalFPS()
- Specified by:
getTotalFPSin interfacecom.jogamp.opengl.FPSCounter
-
-