diff options
author | Kenneth Russel <[email protected]> | 2008-12-16 02:38:46 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2008-12-16 02:38:46 +0000 |
commit | 14a94c810910f88d3b7214ae9be5027dc74df39f (patch) | |
tree | 35792a840d433342d190e1838c456c3242b39295 /src/classes/com/sun/opengl/impl/jawt/JAWTWindow.java | |
parent | 06d146fc64d934039e55a2c00a18e1056e0d85f2 (diff) |
Removed setSize(), setPosition(), setVisible(), and setFullscreen()
from javax.media.opengl.NativeWindow interface as these are concerns
of the window toolkit and not the OpenGL binding. Removed isVisible(),
isFullscreen(), getX(), and getY(). getWidth() and getHeight() remain.
Changed implementations of offscreen and pbuffer drawables and changed
GLJPanel to destroy and re-create its offscreen GLDrawable upon resize
rather than attempting to resize the GLDrawable directly.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1823 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/impl/jawt/JAWTWindow.java')
-rw-r--r-- | src/classes/com/sun/opengl/impl/jawt/JAWTWindow.java | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/src/classes/com/sun/opengl/impl/jawt/JAWTWindow.java b/src/classes/com/sun/opengl/impl/jawt/JAWTWindow.java index 905614952..b1a1d9d8e 100644 --- a/src/classes/com/sun/opengl/impl/jawt/JAWTWindow.java +++ b/src/classes/com/sun/opengl/impl/jawt/JAWTWindow.java @@ -143,40 +143,11 @@ public abstract class JAWTWindow implements NativeWindow { return component.getHeight(); } - public int getX() { - return component.getX(); - } - public int getY() { - return component.getY(); - } - - public void setPosition(int x, int y) { - component.setLocation(x,y); - } - - public void setVisible(boolean visible) { - component.setVisible(visible); - } - - public boolean isVisible() { - return component.isVisible(); - } - - public boolean setFullscreen(boolean fullscreen) { - return false; // FIXME - } - - public boolean isFullscreen() { - return false; // FIXME - } - public String toString() { return "JAWT-Window[windowHandle "+getWindowHandle()+ ", surfaceHandle "+getSurfaceHandle()+ - ", pos "+getX()+"/"+getY()+", size "+getWidth()+"x"+getHeight()+ - ", visible "+isVisible()+ + ", size "+getWidth()+"x"+getHeight()+ ", wrappedWindow "+getWrappedWindow()+ ", terminalObject "+isTerminalObject()+"]"; } - } |