| Modifier and Type | Field and Description |
|---|---|
| protected final String | |
| protected long | |
| private static final String | |
| protected ToolkitLock | |
| private final String | |
| protected final String | |
| protected final int |
| Access | Constructor and Description |
|---|---|
| public | DefaultGraphicsDevice(final String type, final String connection, final int unitID)
Create an instance with the system default |
| public | DefaultGraphicsDevice(final String type, final String connection, final int unitID, final long handle)
Create an instance with the system default |
| public | DefaultGraphicsDevice(final String type, final String connection, final int unitID, final long handle, final ToolkitLock
if null, a non blocking null lock is used. locker)Create an instance with the given |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Object | clone()
Overrides java. Implements com. |
| public boolean | close()
Implements com. null.
|
| public final String | getConnection()
Implements com. |
| public static String | getDefaultDisplayConnection()
Return the default display connection for the given windowing toolkit type
gathered via |
| public static String | getDefaultDisplayConnection(final String type)
Return the default display connection for the given windowing toolkit type
gathered via |
| public final long | getHandle()
Implements com. |
| protected Object | |
| public final ToolkitLock | |
| public final String | getType()
Implements com. |
| public final String | getUniqueID()
Implements com. type,
connection and unitID as it's key components.
|
| private static String | getUniqueID(final String type, final String connection, final int unitID)
Returns a unique String object using |
| public final int | getUnitID()
Implements com. unit ID.
|
| public boolean | |
| public final void | lock()
Implements com. com..
|
| public boolean | open()
Implements com. null.
|
| protected final long | setHandle(final long newHandle)
Set the native handle of the underlying native device and return the previous one. |
| protected Object | |
| protected ToolkitLock | Returns: the previous ToolkitLock instancethe ToolkitLock, if null, locker)jogamp. is being usedSet the internal ToolkitLock, which is used within the
|
| public static final void | swapDeviceHandleAndOwnership(final DefaultGraphicsDevice aDevice1, final DefaultGraphicsDevice aDevice2)
|
| public String | |
| public final void | unlock()
Implements com. com..
|
| public final void |
| connection | back to summary |
|---|---|
| protected final String connection | |
| handle | back to summary |
|---|---|
| protected long handle | |
| separator | back to summary |
|---|---|
| private static final String separator | |
| toolkitLock | back to summary |
|---|---|
| protected ToolkitLock toolkitLock | |
| type | back to summary |
|---|---|
| private final String type | |
| uniqueID | back to summary |
|---|---|
| protected final String uniqueID | |
| unitID | back to summary |
|---|---|
| protected final int unitID | |
| DefaultGraphicsDevice | back to summary |
|---|---|
| public DefaultGraphicsDevice(final String type, final String connection, final int unitID) Create an instance with the system default | |
| DefaultGraphicsDevice | back to summary |
|---|---|
| public DefaultGraphicsDevice(final String type, final String connection, final int unitID, final long handle) Create an instance with the system default | |
| DefaultGraphicsDevice | back to summary |
|---|---|
| public DefaultGraphicsDevice(final String type, final String connection, final int unitID, final long handle, final ToolkitLock locker) Create an instance with the given
| |
| clearHandleOwner | back to summary |
|---|---|
| public void clearHandleOwner() Implements com.
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Implements com. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| close | back to summary |
|---|---|
| public boolean close() Implements com. Doc from com. Optionally closing the device if handle is not
The default implementation
Example implementations like
| |
| getConnection | back to summary |
|---|---|
| public final String getConnection() Implements com. Doc from com. Returns the semantic GraphicsDevice connection.
getUnitID().
| |
| getDefaultDisplayConnection | back to summary |
|---|---|
| public static String getDefaultDisplayConnection() Return the default display connection for the given windowing toolkit type
gathered via | |
| getDefaultDisplayConnection | back to summary |
|---|---|
| public static String getDefaultDisplayConnection(final String type) Return the default display connection for the given windowing toolkit type
gathered via | |
| getHandle | back to summary |
|---|---|
| public final long getHandle() Implements com. Doc from com. Returns the native handle of the underlying native device, if such thing exist.
| |
| getHandleOwnership | back to summary |
|---|---|
| protected Object getHandleOwnership() | |
| getToolkitLock | back to summary |
|---|---|
| public final ToolkitLock getToolkitLock() | |
| getType | back to summary |
|---|---|
| public final String getType() Implements com. Doc from com. Returns the type of the underlying subsystem, ie NativeWindowFactory.TYPE_KD, NativeWindowFactory.TYPE_X11, ..
| |
| getUniqueID | back to summary |
|---|---|
| public final String getUniqueID() Implements com. Doc from com. Returns a unique ID object of this device using The unique ID does not reflect the instance of the device, hence the handle is not included. The unique ID may be used as a key for semantic device mapping.
The returned string object reference is unique using
| |
| getUniqueID | back to summary |
|---|---|
| private static String getUniqueID(final String type, final String connection, final int unitID) Returns a unique String object using | |
| getUnitID | back to summary |
|---|---|
| public final int getUnitID() Implements com. Doc from com. Returns the graphics device
| |
| isHandleOwner | back to summary |
|---|---|
| public boolean isHandleOwner() Implements com.
| |
| lock | back to summary |
|---|---|
| public final void lock() Implements com. Doc from com. Optionally locking the device, utilizing eg
Locking is perfomed via delegation to | |
| open | back to summary |
|---|---|
| public boolean open() Implements com. Doc from com. Optionally [re]opening the device if handle is
The default implementation is a
Example implementations like
| |
| setHandle | back to summary |
|---|---|
| protected final long setHandle(final long newHandle) Set the native handle of the underlying native device and return the previous one. | |
| setHandleOwnership | back to summary |
|---|---|
| protected Object setHandleOwnership(final Object newOwnership) | |
| setToolkitLock | back to summary |
|---|---|
| protected ToolkitLock setToolkitLock(final ToolkitLock locker) Set the internal ToolkitLock, which is used within the
The current ToolkitLock is being locked/unlocked while swapping the reference, ensuring no concurrent access can occur during the swap.
| |
| swapDeviceHandleAndOwnership | back to summary |
|---|---|
| public static final void swapDeviceHandleAndOwnership(final DefaultGraphicsDevice aDevice1, final DefaultGraphicsDevice aDevice2) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| unlock | back to summary |
|---|---|
| public final void unlock() Implements com. Doc from com. Optionally unlocking the device, utilizing eg
Locking is perfomed via delegation to | |
| validateLocked | back to summary |
|---|---|
| public final void validateLocked() throws RuntimeException Implements com.
| |