javax.media.nativewindow.awt
Class AWTGraphicsDevice

java.lang.Object
  extended by javax.media.nativewindow.DefaultGraphicsDevice
      extended by javax.media.nativewindow.awt.AWTGraphicsDevice
All Implemented Interfaces:
Cloneable, AbstractGraphicsDevice

public class AWTGraphicsDevice
extends DefaultGraphicsDevice
implements Cloneable

A wrapper for an AWT GraphicsDevice allowing it to be handled in a toolkit-independent manner.


Field Summary
 
Fields inherited from interface javax.media.nativewindow.AbstractGraphicsDevice
DEFAULT_CONNECTION, DEFAULT_UNIT, EXTERNAL_CONNECTION
 
Method Summary
 Object clone()
           
static AbstractGraphicsDevice createDevice(GraphicsDevice awtDevice, int unitID)
           
 GraphicsDevice getGraphicsDevice()
           
 String getSubType()
           
 void setSubType(String subType, long handle)
          In case the native handle was specified, e.g.
 String toString()
           
 
Methods inherited from class javax.media.nativewindow.DefaultGraphicsDevice
close, getConnection, getHandle, getToolkitLock, getType, getUniqueID, getUnitID, lock, unlock
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

createDevice

public static AbstractGraphicsDevice createDevice(GraphicsDevice awtDevice,
                                                  int unitID)

clone

public Object clone()
Overrides:
clone in class DefaultGraphicsDevice

getGraphicsDevice

public GraphicsDevice getGraphicsDevice()

setSubType

public void setSubType(String subType,
                       long handle)
In case the native handle was specified, e.g. using X11, we shall be able to mark it.
This will also set the subType, queried with getSubType() and reset the ToolkitLock type with NativeWindowFactory.createDefaultToolkitLock(java.lang.String, long) and DefaultGraphicsDevice.setToolkitLock(javax.media.nativewindow.ToolkitLock).


getSubType

public String getSubType()

toString

public String toString()
Overrides:
toString in class DefaultGraphicsDevice


Copyright 2010 JogAmp Community.