javax.media.nativewindow.awt
Class AWTGraphicsDevice
java.lang.Object
javax.media.nativewindow.DefaultGraphicsDevice
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.
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.