JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.test.junit.util.TestUtil Class Referenceabstract
Inheritance diagram for com.jogamp.opengl.test.junit.util.TestUtil:
Collaboration diagram for com.jogamp.opengl.test.junit.util.TestUtil:

Classes

interface  WindowClosingListener
 

Static Public Member Functions

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...
 

Static Public Attributes

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
 

Detailed Description

Definition at line 32 of file TestUtil.java.

Member Function Documentation

◆ waitForFocus()

static boolean com.jogamp.opengl.test.junit.util.TestUtil.waitForFocus ( final FocusEventCountAdapter  gain,
final FocusEventCountAdapter  lost,
final Runnable  waitAction 
) throws InterruptedException
static
Parameters
waitActionif not null, Runnable shall wait TIME_SLICE ms, if appropriate
Returns
True if the Window became the global focused Window within TIME_OUT

Definition at line 50 of file TestUtil.java.

Here is the caller graph for this function:

◆ waitUntilClosed()

static boolean com.jogamp.opengl.test.junit.util.TestUtil.waitUntilClosed ( final boolean  willClose,
final TestUtil.WindowClosingListener  closingListener,
final Runnable  waitAction 
) throws InterruptedException
static

Wait until the window is closing within TIME_OUT.

Parameters
willCloseindicating that the window will close, hence this method waits for the window to be closed
waitActionif not null, Runnable shall wait TIME_SLICE ms, if appropriate
wclthe 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.
Returns
True if the Window is closing and closed (if willClose is true), each within TIME_OUT
Exceptions
InterruptedException

Definition at line 77 of file TestUtil.java.

Here is the caller graph for this function:

Member Data Documentation

◆ POLL_DIVIDER

final int com.jogamp.opengl.test.junit.util.TestUtil.POLL_DIVIDER = 20
static

Definition at line 42 of file TestUtil.java.

◆ RETRY_NUMBER

final int com.jogamp.opengl.test.junit.util.TestUtil.RETRY_NUMBER = 5
static

Definition at line 40 of file TestUtil.java.

◆ TIME_OUT

final int com.jogamp.opengl.test.junit.util.TestUtil.TIME_OUT = 2000
static

Definition at line 41 of file TestUtil.java.

◆ TIME_SLICE

final int com.jogamp.opengl.test.junit.util.TestUtil.TIME_SLICE = TIME_OUT / POLL_DIVIDER
static

Definition at line 43 of file TestUtil.java.


The documentation for this class was generated from the following file: