summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-02-26 22:41:04 +0100
committerSven Gothel <[email protected]>2011-02-26 22:41:04 +0100
commit10c696f7e908ccbf150838f86b286b7c383058c6 (patch)
treec39fb70e8223ae86be61c4926fdf4c91a6734c73 /src/jogl/classes/jogamp/opengl/GLDrawableHelper.java
parent76444dce2b678a7f6769564abac4f8a73f414609 (diff)
Code cleanup: override, imports, StringBuilder, ..
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/GLDrawableHelper.java')
-rw-r--r--src/jogl/classes/jogamp/opengl/GLDrawableHelper.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java b/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java
index fe2b374a0..d079a1bd1 100644
--- a/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java
+++ b/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java
@@ -75,8 +75,9 @@ public class GLDrawableHelper {
animatorCtrl = null;
}
+ @Override
public final String toString() {
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
sb.append("GLAnimatorControl: "+animatorCtrl+", ");
synchronized(listenersLock) {
sb.append("GLEventListeners num "+listeners.size()+" [");
@@ -149,7 +150,7 @@ public class GLDrawableHelper {
}
}
- private final boolean init(GLEventListener l, GLAutoDrawable drawable, boolean sendReshape) {
+ private boolean init(GLEventListener l, GLAutoDrawable drawable, boolean sendReshape) {
if(listenersToBeInit.remove(l)) {
l.init(drawable);
if(sendReshape) {
@@ -194,7 +195,7 @@ public class GLDrawableHelper {
execGLRunnables(drawable);
}
- private final void reshape(GLEventListener listener, GLAutoDrawable drawable,
+ private void reshape(GLEventListener listener, GLAutoDrawable drawable,
int x, int y, int width, int height, boolean setViewport) {
if(setViewport) {
drawable.getGL().glViewport(x, y, width, height);
@@ -212,7 +213,7 @@ public class GLDrawableHelper {
}
}
- private final void execGLRunnables(GLAutoDrawable drawable) {
+ private void execGLRunnables(GLAutoDrawable drawable) {
if(glRunnables.size()>0) {
// swap one-shot list asap
ArrayList _glRunnables = null;