|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
Classes | |
| class | NEWTWindowClosingAdapter |
Static Public Member Functions | |
| static boolean | waitForFocus (final Window win, final Runnable waitAction) throws InterruptedException |
| static boolean | waitForFocus (final Window win, final FocusEventCountAdapter gain, final FocusEventCountAdapter lost, final Runnable waitAction) throws InterruptedException |
| static boolean | waitForSize (final Window window, final int width, final int height, final Runnable waitAction) throws InterruptedException |
| static boolean | waitForVisible (final Window win, final boolean visible, final Runnable waitAction) throws InterruptedException |
| static boolean | waitForRealized (final Screen screen, final boolean realized, final Runnable waitAction) throws InterruptedException |
| static boolean | waitForRealized (final Window win, final boolean realized, final Runnable waitAction) throws InterruptedException |
| static TestUtil.WindowClosingListener | addClosingListener (final Window win) |
| static boolean | closeWindow (final Window win, final boolean willClose, final TestUtil.WindowClosingListener closingListener, final Runnable waitAction) throws InterruptedException |
| Programmatically issue windowClosing on AWT or NEWT. More... | |
| static boolean | hasPositionMax2xInsetsOr64Pix (final Window win, final int shouldX, final int shouldY) |
| Validates whether the window position is on the given position within tolerances. More... | |
| static boolean | hasPosition (final Window win, final int expX, final int expY, final int maxDX, final int maxDY) |
| Validates whether the window position is within the expected position including given tolerance. More... | |
Static Public Member Functions inherited from com.jogamp.opengl.test.junit.util.TestUtil | |
| static boolean | waitForFocus (final FocusEventCountAdapter gain, final FocusEventCountAdapter lost, final Runnable waitAction) throws InterruptedException |
| static boolean | waitUntilClosed (final boolean willClose, final TestUtil.WindowClosingListener closingListener, final Runnable waitAction) throws InterruptedException |
| Wait until the window is closing within TIME_OUT. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from com.jogamp.opengl.test.junit.util.TestUtil | |
| static final int | RETRY_NUMBER = 5 |
| static final int | TIME_OUT = 2000 |
| static final int | POLL_DIVIDER = 20 |
| static final int | TIME_SLICE = TIME_OUT / POLL_DIVIDER |
Definition at line 41 of file NewtTestUtil.java.
|
static |
Definition at line 188 of file NewtTestUtil.java.
|
static |
Programmatically issue windowClosing on AWT or NEWT.
Wait until the window is closing within TIME_OUT.
| willClose | indicating that the window will close, hence this method waits for the window to be closed |
| waitAction | if not null, Runnable shall wait TIME_SLICE ms, if appropriate |
| obj | either an AWT Window (Frame, JFrame) or NEWT Window |
| wcl | the WindowClosingListener to determine whether the AWT or NEWT widget has been closed. It should be attached to the widget ASAP before any other listener, e.g. via addClosingListener(Object). The WindowClosingListener will be reset before attempting to close the widget. |
| InterruptedException |
Definition at line 207 of file NewtTestUtil.java.
|
static |
Validates whether the window position is within the expected position including given tolerance.
Definition at line 232 of file NewtTestUtil.java.
|
static |
Validates whether the window position is on the given position within tolerances.
Since WM may not obey our positional request exactly, we allow a tolerance of 2 times insets[left/top], or 64 pixels, whichever is greater.
Definition at line 219 of file NewtTestUtil.java.
|
static |
| waitAction | if not null, Runnable shall wait TIME_SLICE ms, if appropriate |
Definition at line 106 of file NewtTestUtil.java.
|
static |
| waitAction | if not null, Runnable shall wait TIME_SLICE ms, if appropriate |
Definition at line 89 of file NewtTestUtil.java.
|
static |
| screen | the Screen to wait for |
| realized | true if waiting for component to become realized, otherwise false |
| waitAction | if not null, Runnable shall wait TIME_SLICE ms, if appropriate |
| InterruptedException |
Definition at line 154 of file NewtTestUtil.java.
|
static |
| win | the Window to wait for |
| realized | true if waiting for component to become realized, otherwise false |
| waitAction | if not null, Runnable shall wait TIME_SLICE ms, if appropriate |
| InterruptedException |
Definition at line 174 of file NewtTestUtil.java.
|
static |
| waitAction | if not null, Runnable shall wait TIME_SLICE ms, if appropriate |
Definition at line 119 of file NewtTestUtil.java.
|
static |
| waitAction | if not null, Runnable shall wait TIME_SLICE ms, if appropriate |
visible within TIME_OUT Definition at line 135 of file NewtTestUtil.java.