aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-02-25 17:16:47 +0100
committerSven Gothel <[email protected]>2014-02-25 17:16:47 +0100
commitc2e6233c57f47c067dbb24f4a6a127fbaedf7a08 (patch)
treec807cedfcf9bab703fa9dedfbc7dc743e151059f /src/newt/classes/com
parent84395a04b63eec6dd9ecc90acde7e5570793f4fb (diff)
Fix whitespaces of commit 78fcb8228d4a391054501aef16eb0462322ba39d and WindowImpl comment
Diffstat (limited to 'src/newt/classes/com')
-rw-r--r--src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java12
1 files changed, 6 insertions, 6 deletions
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) {