|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.media.nativewindow.DefaultGraphicsDevice javax.media.nativewindow.x11.X11GraphicsDevice
public class X11GraphicsDevice
Encapsulates a graphics device on X11 platforms.
Field Summary | |
---|---|
static boolean |
DEBUG
|
Fields inherited from interface javax.media.nativewindow.AbstractGraphicsDevice |
---|
DEFAULT_CONNECTION, DEFAULT_UNIT, EXTERNAL_CONNECTION |
Constructor Summary | |
---|---|
X11GraphicsDevice(long display,
int unitID)
Constructs a new X11GraphicsDevice corresponding to the given native display handle and default ToolkitLock via NativeWindowFactory.createDefaultToolkitLock(java.lang.String, long) . |
|
X11GraphicsDevice(long display,
int unitID,
ToolkitLock locker)
|
|
X11GraphicsDevice(String connection,
int unitID)
Constructs a new X11GraphicsDevice corresponding to the given connection and default ToolkitLock via NativeWindowFactory.createDefaultToolkitLock(java.lang.String, long) .Note that this is not an open connection, ie no native display handle exist. |
Method Summary | |
---|---|
Object |
clone()
|
boolean |
close()
Optionally closing the device. The default implementation is a NOP operation, returning false. The specific implementing, ie X11GraphicsDevice ,
shall have a enable/disable like javax.media.nativewindow.x11.X11GraphicsDevice#setCloseDisplay(boolean, boolean) ,which shall be invoked at creation time to determine ownership/role of freeing the resource. |
void |
setCloseDisplay(boolean close)
|
Methods inherited from class javax.media.nativewindow.DefaultGraphicsDevice |
---|
getConnection, getHandle, getToolkitLock, getType, getUniqueID, getUnitID, lock, toString, unlock |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final boolean DEBUG
Constructor Detail |
---|
public X11GraphicsDevice(String connection, int unitID)
ToolkitLock
via NativeWindowFactory.createDefaultToolkitLock(java.lang.String, long)
.
public X11GraphicsDevice(long display, int unitID)
ToolkitLock
via NativeWindowFactory.createDefaultToolkitLock(java.lang.String, long)
.
public X11GraphicsDevice(long display, int unitID, ToolkitLock locker)
display
- the Display connectionlocker
- custom ToolkitLock
, eg to force null locking in NEWTMethod Detail |
---|
public Object clone()
clone
in class DefaultGraphicsDevice
public void setCloseDisplay(boolean close)
public boolean close()
AbstractGraphicsDevice
X11GraphicsDevice
,
shall have a enable/disable like javax.media.nativewindow.x11.X11GraphicsDevice#setCloseDisplay(boolean, boolean)
,
close
in interface AbstractGraphicsDevice
close
in class DefaultGraphicsDevice
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |