public class X11GraphicsDevice extends DefaultGraphicsDevice implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
DEFAULT_CONNECTION, DEFAULT_UNIT, EXTERNAL_CONNECTION| Constructor and Description |
|---|
X11GraphicsDevice(long display,
int unitID,
boolean owner)
Constructs a new X11GraphicsDevice corresponding to the given native display handle and default
ToolkitLock via NativeWindowFactory.createDefaultToolkitLock(String, long). |
X11GraphicsDevice(long display,
int unitID,
ToolkitLock locker,
boolean owner) |
X11GraphicsDevice(String connection,
int unitID)
Constructs a new X11GraphicsDevice corresponding to the given connection and default
ToolkitLock via NativeWindowFactory.getDefaultToolkitLock(String).Note that this is not an open connection, ie no native display handle exist. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
close()
Optionally closing the device.
|
getConnection, getHandle, getToolkitLock, getType, getUniqueID, getUnitID, lock, toString, unlockpublic X11GraphicsDevice(String connection, int unitID)
ToolkitLock via NativeWindowFactory.getDefaultToolkitLock(String).public X11GraphicsDevice(long display,
int unitID,
boolean owner)
ToolkitLock via NativeWindowFactory.createDefaultToolkitLock(String, long).public X11GraphicsDevice(long display,
int unitID,
ToolkitLock locker,
boolean owner)
display - the Display connectionlocker - custom ToolkitLock, eg to force null locking in NEWTDefaultGraphicsDevice.DefaultGraphicsDevice(String, String, int, long, ToolkitLock)public Object clone()
clone in class DefaultGraphicsDevicepublic boolean close()
AbstractGraphicsDevice
The default implementation is a NOP, just setting the handle to null.
X11GraphicsDevice,
shall have a enable/disable like com.jogamp.nativewindow.x11.X11GraphicsDevice#setCloseDisplay(boolean, boolean),close in interface AbstractGraphicsDeviceclose in class DefaultGraphicsDevicenull, otherwise false.Copyright 2010 JogAmp Community.