aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/gcj/xlib/Screen.java
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2016-09-30 16:24:48 +0000
committerAndrew Haley <aph@gcc.gnu.org>2016-09-30 16:24:48 +0000
commit07b78716af6a9d7c9fd1e94d9baf94a52c873947 (patch)
tree3f22b3241c513ad168c8353805614ae1249410f4 /libjava/gnu/gcj/xlib/Screen.java
parenteae993948bae8b788c53772bcb9217c063716f93 (diff)
downloadgcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.zip
gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.tar.gz
gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.tar.bz2
Makefile.def: Remove libjava.
2016-09-30 Andrew Haley <aph@redhat.com> * Makefile.def: Remove libjava. * Makefile.tpl: Likewise. * Makefile.in: Regenerate. * configure.ac: Likewise. * configure: Likewise. * gcc/java: Remove. * libjava: Likewise. From-SVN: r240662
Diffstat (limited to 'libjava/gnu/gcj/xlib/Screen.java')
-rw-r--r--libjava/gnu/gcj/xlib/Screen.java86
1 files changed, 0 insertions, 86 deletions
diff --git a/libjava/gnu/gcj/xlib/Screen.java b/libjava/gnu/gcj/xlib/Screen.java
deleted file mode 100644
index 675ed1b..0000000
--- a/libjava/gnu/gcj/xlib/Screen.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/* Copyright (C) 2000 Free Software Foundation
-
- This file is part of libgcj.
-
-This software is copyrighted work licensed under the terms of the
-Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
-details. */
-
-package gnu.gcj.xlib;
-
-import gnu.gcj.RawData;
-
-/**
- * A flyweight class that denotes an X11 screen. Display and screen
- * number is the only data kept by this class. The real screen
- * structure is stored in the display. There may exist several
- * objects denoting the same screen.
- *
- * @author Rolf W. Rasmussen <rolfwr@ii.uib.no>
- */
-public final class Screen
-{
- static final int UNKNOWN = -1;
-
- Display display;
- int screenNumber = UNKNOWN;
- RawData structure;
-
- Screen(Display display, RawData screenStructure)
- {
- structure = screenStructure;
- this.display = display;
- }
-
- public Screen(Display display)
- {
- this(display, display.getDefaultScreenNumber());
- }
-
- public Screen(Display display, int screenNumber)
- {
- this.display = display;
- this.screenNumber = screenNumber;
- initStructure();
- }
-
- public final Display getDisplay()
- {
- return display;
- }
-
- public Window getRootWindow()
- {
- int rootXID = getRootWindowXID();
- return display.getWindow(rootXID);
- }
-
- public Visual getRootVisual()
- {
- RawData visualStructure = getRootVisualStructure();
- int depth = getRootDepth();
- return new Visual(visualStructure, this, depth);
- }
-
- private native RawData getRootVisualStructure();
-
- public native int getRootDepth();
- public native int getRootWindowXID();
- public native int getDefaultColormapXID();
-
- native void initStructure();
-
- public Colormap getDefaultColormap()
- {
- return new Colormap(this, getDefaultColormapXID());
- }
-
- public final int getScreenNumber()
- {
- if (screenNumber == UNKNOWN)
- screenNumber = findScreenNumber();
- return screenNumber;
- }
-
- public native int findScreenNumber();
-}