41package com.jogamp.nativewindow.awt;
43import java.awt.GraphicsDevice;
44import java.awt.GraphicsEnvironment;
45import com.jogamp.nativewindow.*;
59 if(index<0)
return null;
60 final GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
61 final GraphicsDevice[] gs = ge.getScreenDevices();
69 if(
null==awtDevice)
return -1;
70 final GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
71 final GraphicsDevice[] gs = ge.getScreenDevices();
72 for (
int j = 0; j < gs.length; j++) {
73 if(gs[j] == awtDevice)
return j;
A wrapper for an AWT GraphicsDevice allowing it to be handled in a toolkit-independent manner.
static AWTGraphicsDevice createDefault()
GraphicsDevice getGraphicsDevice()
A wrapper for an AWT GraphicsDevice (screen) allowing it to be handled in a toolkit-independent manne...
static AbstractGraphicsScreen createScreenDevice(final int index, final int unitID)
static int findScreenIndex(final GraphicsDevice awtDevice)
static AbstractGraphicsScreen createDefault()
static GraphicsDevice getScreenDevice(final int index)
AWTGraphicsScreen(final AWTGraphicsDevice device)
static AbstractGraphicsScreen createScreenDevice(final GraphicsDevice awtDevice, final int unitID)
A interface describing a graphics screen in a toolkit-independent manner.