public class ScreenSize
extends java.lang.Object
The process of getting the dimensions is launched in a different thread and can be going on while other PAMGAURD startup processes are initialising.
Modifier and Type | Class and Description |
---|---|
class |
ScreenSize.GetBounds
Thread to obtain the screen bounds.
|
Modifier and Type | Method and Description |
---|---|
static java.awt.Rectangle |
getScreenBounds()
Gets the screen bounds.
|
static java.awt.Rectangle |
getScreenBounds(int maxWaitMillis)
Gets the virtual screen size.
|
boolean |
haveScreenBounds() |
static void |
startScreenSizeProcess()
Only needs to be called once to
start the background process which gets
the virtual screen size.
|
public static void startScreenSizeProcess()
Is called from PAMGUARD Main to get it going asap.
public static java.awt.Rectangle getScreenBounds()
public static java.awt.Rectangle getScreenBounds(int maxWaitMillis)
maxWaitMillis
- Max time to wait.public boolean haveScreenBounds()