34package com.jogamp.opengl.util;
36import java.util.ArrayList;
38import com.jogamp.opengl.GLAutoDrawable;
40import com.jogamp.opengl.util.AnimatorBase.UncaughtAnimatorException;
46class DefaultAnimatorImpl
implements AnimatorBase.AnimatorImpl {
48 public void display(
final ArrayList<GLAutoDrawable> drawables,
49 final boolean ignoreExceptions,
50 final boolean printExceptions)
throws UncaughtAnimatorException {
51 boolean hasException =
false;
52 for (
int i=0; !hasException && i<drawables.size(); i++) {
53 boolean catch1 =
true;
54 GLAutoDrawable drawable =
null;
56 drawable = drawables.get(i);
59 }
catch (
final Throwable t) {
60 if( catch1 && t instanceof IndexOutOfBoundsException ) {
63 }
else if (ignoreExceptions) {
64 if (printExceptions) {
68 throw new UncaughtAnimatorException(drawable, t);
75 public boolean blockUntilDone(
final Thread thread) {
76 return Thread.currentThread() != thread;