diff options
author | Sven Gothel <[email protected]> | 2014-01-13 06:35:52 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-01-13 06:35:52 +0100 |
commit | 9dcaf86ad6ae08e60c68abd4c069f3ab19807854 (patch) | |
tree | a9a0ef59590677a2e612af70a5f2bb36898caa9a /src/nativewindow | |
parent | 1635eeba33368aee52f23baebcfd74c25a7f113a (diff) |
JAWTWindow.JAWTComponentListener: Minor Cleanup
Diffstat (limited to 'src/nativewindow')
-rw-r--r-- | src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java b/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java index 4b0ae5d20..8765f58d0 100644 --- a/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java +++ b/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java @@ -127,7 +127,7 @@ public abstract class JAWTWindow implements NativeWindow, OffscreenLayerSurface, private class JAWTComponentListener implements ComponentListener, HierarchyListener { private boolean isShowing; - private String str(Object obj) { + private String str(final Object obj) { if( null == obj ) { return "0xnil: null"; } else if( obj instanceof Component ) { @@ -138,14 +138,14 @@ public abstract class JAWTWindow implements NativeWindow, OffscreenLayerSurface, return id(obj)+": "+obj.getClass().getSimpleName()+"[..]"; } } - private String s(ComponentEvent e) { + private String s(final ComponentEvent e) { return "visible[isShowing "+isShowing+"],"+Platform.getNewline()+ " ** COMP "+str(e.getComponent())+Platform.getNewline()+ " ** SOURCE "+str(e.getSource())+Platform.getNewline()+ " ** THIS "+str(component)+Platform.getNewline()+ " ** THREAD "+getThreadName(); } - private String s(HierarchyEvent e) { + private String s(final HierarchyEvent e) { return "visible[isShowing "+isShowing+"], changeBits 0x"+Long.toHexString(e.getChangeFlags())+Platform.getNewline()+ " ** COMP "+str(e.getComponent())+Platform.getNewline()+ " ** SOURCE "+str(e.getSource())+Platform.getNewline()+ @@ -212,11 +212,11 @@ public abstract class JAWTWindow implements NativeWindow, OffscreenLayerSurface, @Override public final void hierarchyChanged(HierarchyEvent e) { - final boolean wasAWTCompShowing = isShowing; + final boolean wasShowing = isShowing; isShowing = component.isShowing(); int action = 0; if( 0 != ( java.awt.event.HierarchyEvent.SHOWING_CHANGED & e.getChangeFlags() ) ) { - if( e.getChanged() != component && wasAWTCompShowing != isShowing ) { + if( e.getChanged() != component && wasShowing != isShowing ) { // A parent component changed and caused a 'showing' state change, // propagate to offscreen-layer! layoutSurfaceLayerIfEnabled(isShowing); |