Class NewtSwingEDTUtils
- java.lang.Object
-
- com.metsci.glimpse.core.support.swing.NewtSwingEDTUtils
-
public class NewtSwingEDTUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNewtSwingEDTUtils.ModalBlockedStatus
-
Constructor Summary
Constructors Constructor Description NewtSwingEDTUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckModuleAccess()static NewtSwingEDTUtils.ModalBlockedStatusgetModalBlockedStatus(com.jogamp.newt.event.InputEvent ev)WARNING: This method relies on implementation details of both NEWT and AWT.
-
-
-
Method Detail
-
checkModuleAccess
public static void checkModuleAccess()
-
getModalBlockedStatus
public static NewtSwingEDTUtils.ModalBlockedStatus getModalBlockedStatus(com.jogamp.newt.event.InputEvent ev)
WARNING: This method relies on implementation details of both NEWT and AWT. If for any reason it cannot determine whether the event is modal- blocked, it returnsNewtSwingEDTUtils.ModalBlockedStatus.UNKNOWN. Client code should be written with this possibility in mind.Works on Oracle/OpenJDK 8 JVMs.
Works on OpenJDK 9+ JVMs, but requires the following JVM arg:
--add-opens java.desktop/java.awt=com.metsci.glimpse.core
-
-