gzz.client.awt
Class AWTAPI
java.lang.Object
|
+--gzz.client.GraphicsAPI
|
+--gzz.client.awt.AWTAPI
- public class AWTAPI
- extends GraphicsAPI
Java.awt.Graphics implementation of GraphicsAPI
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AWTAPI
public AWTAPI()
startUpdateManager
public void startUpdateManager(java.lang.Runnable r)
- Description copied from class:
GraphicsAPI
- Start the update manager thread and run r from that thread.
Used because e.g. OpenGL and GLX are easier to manage if everything
is done in one thread.
Windows must not be created by any other thread.
- Specified by:
startUpdateManager
in class GraphicsAPI
createWindow
public GraphicsAPI.Window createWindow()
- Description copied from class:
GraphicsAPI
- Create a new window.
- Specified by:
createWindow
in class GraphicsAPI
createStableOffscreen
public GraphicsAPI.RenderingSurface createStableOffscreen(int w,
int h)
- Description copied from class:
GraphicsAPI
- Create an off-screen rendering surface that does not
get corrupted by other windows.
- Specified by:
createStableOffscreen
in class GraphicsAPI
getTextStyle
public TextStyle getTextStyle(java.lang.String family,
int style,
int size)
- Description copied from class:
GraphicsAPI
- Obtain a text style object for an abstract font at a given
size. The parameters are as
in
java.awt.Font#Font()
- Specified by:
getTextStyle
in class GraphicsAPI