sun.awt.X11GraphicsEnvironment Java Examples
The following examples show how to use
sun.awt.X11GraphicsEnvironment.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JulesPathBuf.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public Boolean run() { boolean loadSuccess = false; if (X11GraphicsEnvironment.isXRenderAvailable()) { try { System.loadLibrary("jules"); loadSuccess = true; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library loaded"); } } catch (UnsatisfiedLinkError ex) { loadSuccess = false; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library not installed."); } } } return Boolean.valueOf(loadSuccess); }
Example #2
Source File: JulesPathBuf.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public Boolean run() { boolean loadSuccess = false; if (X11GraphicsEnvironment.isXRenderAvailable()) { try { System.loadLibrary("jules"); loadSuccess = true; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library loaded"); } } catch (UnsatisfiedLinkError ex) { loadSuccess = false; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library not installed."); } } } return Boolean.valueOf(loadSuccess); }
Example #3
Source File: XlibUtil.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Xinerama-aware version of XlibWrapper.RootWindow method. */ public static long getRootWindow(int screenNumber) { XToolkit.awtLock(); try { X11GraphicsEnvironment x11ge = (X11GraphicsEnvironment) GraphicsEnvironment.getLocalGraphicsEnvironment(); if (x11ge.runningXinerama()) { // all the Xinerama windows share the same root window return XlibWrapper.RootWindow(XToolkit.getDisplay(), 0); } else { return XlibWrapper.RootWindow(XToolkit.getDisplay(), screenNumber); } } finally { XToolkit.awtUnlock(); } }
Example #4
Source File: JulesPathBuf.java From hottub with GNU General Public License v2.0 | 6 votes |
public Boolean run() { boolean loadSuccess = false; if (X11GraphicsEnvironment.isXRenderAvailable()) { try { System.loadLibrary("jules"); loadSuccess = true; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library loaded"); } } catch (UnsatisfiedLinkError ex) { loadSuccess = false; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library not installed."); } } } return Boolean.valueOf(loadSuccess); }
Example #5
Source File: XlibUtil.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Xinerama-aware version of XlibWrapper.RootWindow method. */ public static long getRootWindow(int screenNumber) { XToolkit.awtLock(); try { X11GraphicsEnvironment x11ge = (X11GraphicsEnvironment) GraphicsEnvironment.getLocalGraphicsEnvironment(); if (x11ge.runningXinerama()) { // all the Xinerama windows share the same root window return XlibWrapper.RootWindow(XToolkit.getDisplay(), 0); } else { return XlibWrapper.RootWindow(XToolkit.getDisplay(), screenNumber); } } finally { XToolkit.awtUnlock(); } }
Example #6
Source File: XlibUtil.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Xinerama-aware version of XlibWrapper.RootWindow method. */ public static long getRootWindow(int screenNumber) { XToolkit.awtLock(); try { X11GraphicsEnvironment x11ge = (X11GraphicsEnvironment) GraphicsEnvironment.getLocalGraphicsEnvironment(); if (x11ge.runningXinerama()) { // all the Xinerama windows share the same root window return XlibWrapper.RootWindow(XToolkit.getDisplay(), 0); } else { return XlibWrapper.RootWindow(XToolkit.getDisplay(), screenNumber); } } finally { XToolkit.awtUnlock(); } }
Example #7
Source File: JulesPathBuf.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public Boolean run() { boolean loadSuccess = false; if (X11GraphicsEnvironment.isXRenderAvailable()) { try { System.loadLibrary("jules"); loadSuccess = true; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library loaded"); } } catch (UnsatisfiedLinkError ex) { loadSuccess = false; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library not installed."); } } } return Boolean.valueOf(loadSuccess); }
Example #8
Source File: JulesPathBuf.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public Boolean run() { boolean loadSuccess = false; if (X11GraphicsEnvironment.isXRenderAvailable()) { try { System.loadLibrary("jules"); loadSuccess = true; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library loaded"); } } catch (UnsatisfiedLinkError ex) { loadSuccess = false; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library not installed."); } } } return Boolean.valueOf(loadSuccess); }
Example #9
Source File: XlibUtil.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Xinerama-aware version of XlibWrapper.RootWindow method. */ public static long getRootWindow(int screenNumber) { XToolkit.awtLock(); try { X11GraphicsEnvironment x11ge = (X11GraphicsEnvironment) GraphicsEnvironment.getLocalGraphicsEnvironment(); if (x11ge.runningXinerama()) { // all the Xinerama windows share the same root window return XlibWrapper.RootWindow(XToolkit.getDisplay(), 0); } else { return XlibWrapper.RootWindow(XToolkit.getDisplay(), screenNumber); } } finally { XToolkit.awtUnlock(); } }
Example #10
Source File: XlibUtil.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Xinerama-aware version of XlibWrapper.RootWindow method. */ public static long getRootWindow(int screenNumber) { XToolkit.awtLock(); try { X11GraphicsEnvironment x11ge = (X11GraphicsEnvironment) GraphicsEnvironment.getLocalGraphicsEnvironment(); if (x11ge.runningXinerama()) { // all the Xinerama windows share the same root window return XlibWrapper.RootWindow(XToolkit.getDisplay(), 0); } else { return XlibWrapper.RootWindow(XToolkit.getDisplay(), screenNumber); } } finally { XToolkit.awtUnlock(); } }
Example #11
Source File: JulesPathBuf.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public Boolean run() { boolean loadSuccess = false; if (X11GraphicsEnvironment.isXRenderAvailable()) { try { System.loadLibrary("jules"); loadSuccess = true; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library loaded"); } } catch (UnsatisfiedLinkError ex) { loadSuccess = false; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library not installed."); } } } return Boolean.valueOf(loadSuccess); }
Example #12
Source File: JulesPathBuf.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
public Boolean run() { boolean loadSuccess = false; if (X11GraphicsEnvironment.isXRenderAvailable()) { try { System.loadLibrary("jules"); loadSuccess = true; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library loaded"); } } catch (UnsatisfiedLinkError ex) { loadSuccess = false; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library not installed."); } } } return Boolean.valueOf(loadSuccess); }
Example #13
Source File: XlibUtil.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Xinerama-aware version of XlibWrapper.RootWindow method. */ public static long getRootWindow(int screenNumber) { XToolkit.awtLock(); try { X11GraphicsEnvironment x11ge = (X11GraphicsEnvironment) GraphicsEnvironment.getLocalGraphicsEnvironment(); if (x11ge.runningXinerama()) { // all the Xinerama windows share the same root window return XlibWrapper.RootWindow(XToolkit.getDisplay(), 0); } else { return XlibWrapper.RootWindow(XToolkit.getDisplay(), screenNumber); } } finally { XToolkit.awtUnlock(); } }
Example #14
Source File: XlibUtil.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
/** * Xinerama-aware version of XlibWrapper.RootWindow method. */ public static long getRootWindow(int screenNumber) { XToolkit.awtLock(); try { X11GraphicsEnvironment x11ge = (X11GraphicsEnvironment) GraphicsEnvironment.getLocalGraphicsEnvironment(); if (x11ge.runningXinerama()) { // all the Xinerama windows share the same root window return XlibWrapper.RootWindow(XToolkit.getDisplay(), 0); } else { return XlibWrapper.RootWindow(XToolkit.getDisplay(), screenNumber); } } finally { XToolkit.awtUnlock(); } }
Example #15
Source File: JulesPathBuf.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public Boolean run() { boolean loadSuccess = false; if (X11GraphicsEnvironment.isXRenderAvailable()) { try { System.loadLibrary("jules"); loadSuccess = true; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library loaded"); } } catch (UnsatisfiedLinkError ex) { loadSuccess = false; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library not installed."); } } } return Boolean.valueOf(loadSuccess); }
Example #16
Source File: JulesPathBuf.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public Boolean run() { boolean loadSuccess = false; if (X11GraphicsEnvironment.isXRenderAvailable()) { try { System.loadLibrary("jules"); loadSuccess = true; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library loaded"); } } catch (UnsatisfiedLinkError ex) { loadSuccess = false; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library not installed."); } } } return Boolean.valueOf(loadSuccess); }
Example #17
Source File: XlibUtil.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
/** * Xinerama-aware version of XlibWrapper.RootWindow method. */ public static long getRootWindow(int screenNumber) { XToolkit.awtLock(); try { X11GraphicsEnvironment x11ge = (X11GraphicsEnvironment) GraphicsEnvironment.getLocalGraphicsEnvironment(); if (x11ge.runningXinerama()) { // all the Xinerama windows share the same root window return XlibWrapper.RootWindow(XToolkit.getDisplay(), 0); } else { return XlibWrapper.RootWindow(XToolkit.getDisplay(), screenNumber); } } finally { XToolkit.awtUnlock(); } }
Example #18
Source File: XlibUtil.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
/** * Xinerama-aware version of XlibWrapper.RootWindow method. */ public static long getRootWindow(int screenNumber) { XToolkit.awtLock(); try { X11GraphicsEnvironment x11ge = (X11GraphicsEnvironment) GraphicsEnvironment.getLocalGraphicsEnvironment(); if (x11ge.runningXinerama()) { // all the Xinerama windows share the same root window return XlibWrapper.RootWindow(XToolkit.getDisplay(), 0); } else { return XlibWrapper.RootWindow(XToolkit.getDisplay(), screenNumber); } } finally { XToolkit.awtUnlock(); } }
Example #19
Source File: JulesPathBuf.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public Boolean run() { boolean loadSuccess = false; if (X11GraphicsEnvironment.isXRenderAvailable()) { try { System.loadLibrary("jules"); loadSuccess = true; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library loaded"); } } catch (UnsatisfiedLinkError ex) { loadSuccess = false; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library not installed."); } } } return Boolean.valueOf(loadSuccess); }
Example #20
Source File: XlibUtil.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Xinerama-aware version of XlibWrapper.RootWindow method. */ public static long getRootWindow(int screenNumber) { XToolkit.awtLock(); try { X11GraphicsEnvironment x11ge = (X11GraphicsEnvironment) GraphicsEnvironment.getLocalGraphicsEnvironment(); if (x11ge.runningXinerama()) { // all the Xinerama windows share the same root window return XlibWrapper.RootWindow(XToolkit.getDisplay(), 0); } else { return XlibWrapper.RootWindow(XToolkit.getDisplay(), screenNumber); } } finally { XToolkit.awtUnlock(); } }
Example #21
Source File: JulesPathBuf.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
public Boolean run() { boolean loadSuccess = false; if (X11GraphicsEnvironment.isXRenderAvailable()) { try { System.loadLibrary("jules"); loadSuccess = true; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library loaded"); } } catch (UnsatisfiedLinkError ex) { loadSuccess = false; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library not installed."); } } } return Boolean.valueOf(loadSuccess); }
Example #22
Source File: JulesPathBuf.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public Boolean run() { boolean loadSuccess = false; if (X11GraphicsEnvironment.isXRenderAvailable()) { try { System.loadLibrary("jules"); loadSuccess = true; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library loaded"); } } catch (UnsatisfiedLinkError ex) { loadSuccess = false; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library not installed."); } } } return Boolean.valueOf(loadSuccess); }
Example #23
Source File: XlibUtil.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Xinerama-aware version of XlibWrapper.RootWindow method. */ public static long getRootWindow(int screenNumber) { XToolkit.awtLock(); try { X11GraphicsEnvironment x11ge = (X11GraphicsEnvironment) GraphicsEnvironment.getLocalGraphicsEnvironment(); if (x11ge.runningXinerama()) { // all the Xinerama windows share the same root window return XlibWrapper.RootWindow(XToolkit.getDisplay(), 0); } else { return XlibWrapper.RootWindow(XToolkit.getDisplay(), screenNumber); } } finally { XToolkit.awtUnlock(); } }
Example #24
Source File: XlibUtil.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Xinerama-aware version of XlibWrapper.RootWindow method. */ public static long getRootWindow(int screenNumber) { XToolkit.awtLock(); try { X11GraphicsEnvironment x11ge = (X11GraphicsEnvironment) GraphicsEnvironment.getLocalGraphicsEnvironment(); if (x11ge.runningXinerama()) { // all the Xinerama windows share the same root window return XlibWrapper.RootWindow(XToolkit.getDisplay(), 0); } else { return XlibWrapper.RootWindow(XToolkit.getDisplay(), screenNumber); } } finally { XToolkit.awtUnlock(); } }
Example #25
Source File: JulesPathBuf.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public Boolean run() { boolean loadSuccess = false; if (X11GraphicsEnvironment.isXRenderAvailable()) { try { System.loadLibrary("jules"); loadSuccess = true; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library loaded"); } } catch (UnsatisfiedLinkError ex) { loadSuccess = false; if (X11GraphicsEnvironment.isXRenderVerbose()) { System.out.println( "Xrender: INFO: Jules library not installed."); } } } return Boolean.valueOf(loadSuccess); }
Example #26
Source File: XlibUtil.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Xinerama-aware version of XlibWrapper.RootWindow method. */ public static long getRootWindow(int screenNumber) { XToolkit.awtLock(); try { X11GraphicsEnvironment x11ge = (X11GraphicsEnvironment) GraphicsEnvironment.getLocalGraphicsEnvironment(); if (x11ge.runningXinerama()) { // all the Xinerama windows share the same root window return XlibWrapper.RootWindow(XToolkit.getDisplay(), 0); } else { return XlibWrapper.RootWindow(XToolkit.getDisplay(), screenNumber); } } finally { XToolkit.awtUnlock(); } }
Example #27
Source File: GLXGraphicsConfig.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public static GLXGraphicsConfig getConfig(X11GraphicsDevice device, int visualnum) { if (!X11GraphicsEnvironment.isGLXAvailable()) { return null; } long cfginfo = 0; final String ids[] = new String[1]; OGLRenderQueue rq = OGLRenderQueue.getInstance(); rq.lock(); try { // getGLXConfigInfo() creates and destroys temporary // surfaces/contexts, so we should first invalidate the current // Java-level context and flush the queue... OGLContext.invalidateCurrentContext(); GLXGetConfigInfo action = new GLXGetConfigInfo(device.getScreen(), visualnum); rq.flushAndInvokeNow(action); cfginfo = action.getConfigInfo(); if (cfginfo != 0L) { OGLContext.setScratchSurface(cfginfo); rq.flushAndInvokeNow(new Runnable() { public void run() { ids[0] = OGLContext.getOGLIdString(); } }); } } finally { rq.unlock(); } if (cfginfo == 0) { return null; } int oglCaps = getOGLCapabilities(cfginfo); ContextCapabilities caps = new OGLContextCaps(oglCaps, ids[0]); return new GLXGraphicsConfig(device, visualnum, cfginfo, caps); }
Example #28
Source File: GLXGraphicsConfig.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public static GLXGraphicsConfig getConfig(X11GraphicsDevice device, int visualnum) { if (!X11GraphicsEnvironment.isGLXAvailable()) { return null; } long cfginfo = 0; final String ids[] = new String[1]; OGLRenderQueue rq = OGLRenderQueue.getInstance(); rq.lock(); try { // getGLXConfigInfo() creates and destroys temporary // surfaces/contexts, so we should first invalidate the current // Java-level context and flush the queue... OGLContext.invalidateCurrentContext(); GLXGetConfigInfo action = new GLXGetConfigInfo(device.getScreen(), visualnum); rq.flushAndInvokeNow(action); cfginfo = action.getConfigInfo(); if (cfginfo != 0L) { OGLContext.setScratchSurface(cfginfo); rq.flushAndInvokeNow(new Runnable() { public void run() { ids[0] = OGLContext.getOGLIdString(); } }); } } finally { rq.unlock(); } if (cfginfo == 0) { return null; } int oglCaps = getOGLCapabilities(cfginfo); ContextCapabilities caps = new OGLContextCaps(oglCaps, ids[0]); return new GLXGraphicsConfig(device, visualnum, cfginfo, caps); }
Example #29
Source File: GLXGraphicsConfig.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
public static GLXGraphicsConfig getConfig(X11GraphicsDevice device, int visualnum) { if (!X11GraphicsEnvironment.isGLXAvailable()) { return null; } long cfginfo = 0; final String ids[] = new String[1]; OGLRenderQueue rq = OGLRenderQueue.getInstance(); rq.lock(); try { // getGLXConfigInfo() creates and destroys temporary // surfaces/contexts, so we should first invalidate the current // Java-level context and flush the queue... OGLContext.invalidateCurrentContext(); GLXGetConfigInfo action = new GLXGetConfigInfo(device.getScreen(), visualnum); rq.flushAndInvokeNow(action); cfginfo = action.getConfigInfo(); if (cfginfo != 0L) { OGLContext.setScratchSurface(cfginfo); rq.flushAndInvokeNow(new Runnable() { public void run() { ids[0] = OGLContext.getOGLIdString(); } }); } } finally { rq.unlock(); } if (cfginfo == 0) { return null; } int oglCaps = getOGLCapabilities(cfginfo); ContextCapabilities caps = new OGLContextCaps(oglCaps, ids[0]); return new GLXGraphicsConfig(device, visualnum, cfginfo, caps); }
Example #30
Source File: GLXGraphicsConfig.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
public static GLXGraphicsConfig getConfig(X11GraphicsDevice device, int visualnum) { if (!X11GraphicsEnvironment.isGLXAvailable()) { return null; } long cfginfo = 0; final String ids[] = new String[1]; OGLRenderQueue rq = OGLRenderQueue.getInstance(); rq.lock(); try { // getGLXConfigInfo() creates and destroys temporary // surfaces/contexts, so we should first invalidate the current // Java-level context and flush the queue... OGLContext.invalidateCurrentContext(); GLXGetConfigInfo action = new GLXGetConfigInfo(device.getScreen(), visualnum); rq.flushAndInvokeNow(action); cfginfo = action.getConfigInfo(); if (cfginfo != 0L) { OGLContext.setScratchSurface(cfginfo); rq.flushAndInvokeNow(new Runnable() { public void run() { ids[0] = OGLContext.getOGLIdString(); } }); } } finally { rq.unlock(); } if (cfginfo == 0) { return null; } int oglCaps = getOGLCapabilities(cfginfo); ContextCapabilities caps = new OGLContextCaps(oglCaps, ids[0]); return new GLXGraphicsConfig(device, visualnum, cfginfo, caps); }