From c2e6233c57f47c067dbb24f4a6a127fbaedf7a08 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 25 Feb 2014 17:16:47 +0100 Subject: Fix whitespaces of commit 78fcb8228d4a391054501aef16eb0462322ba39d and WindowImpl comment --- src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/newt/classes/com/jogamp') diff --git a/src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java b/src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java index dbb5c13bc..6f4be75f5 100644 --- a/src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java +++ b/src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java @@ -163,13 +163,13 @@ public class NewtCanvasSWT extends Canvas implements WindowClosingProtocol { addListener (SWT.Paint, listener); addListener (SWT.Dispose, listener); } - @Override + @Override public void setBounds(int x, int y, int w, int h) { // propagate the setBounds method coming from parent elements to this element // and force newtChild to update its position in OSX super.setBounds(x,y,w,h); if(SWTAccessor.isOSX) { - newtChild.setPosition(x, y); + newtChild.setPosition(x, y); clientArea.width = w; clientArea.height = h; updateSizeCheck(); @@ -208,8 +208,8 @@ public class NewtCanvasSWT extends Canvas implements WindowClosingProtocol { nativeWindow = new SWTNativeWindow(config, nativeWindowHandle); reparentWindow( true ); if(SWTAccessor.isOSX) { - // initial positioning for OSX, called when the window is created - newtChild.setPosition(getLocation().x, getLocation().y); + // initial positioning for OSX, called when the window is created + newtChild.setPosition(getLocation().x, getLocation().y); } } @@ -267,7 +267,7 @@ public class NewtCanvasSWT extends Canvas implements WindowClosingProtocol { nativeWindow = null; super.dispose(); } - + private Point getParentLocationOnScreen() { org.eclipse.swt.graphics.Point parentLoc = getParent().toDisplay(0,0); return new Point(parentLoc.x,parentLoc.y); @@ -519,7 +519,7 @@ public class NewtCanvasSWT extends Canvas implements WindowClosingProtocol { public Point getLocationOnScreen(Point point) { final Point los; // client window location on screen if( SWTAccessor.isOSX ) { - // let getLOS provide the point where the child window may be placed + // let getLOS provide the point where the child window may be placed // from, as taken from SWT Control.toDisplay(); los = getParentLocationOnScreen(); } else if (SWTAccessor.isX11) { -- cgit v1.2.3