|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPamView.ScreenSize
public class ScreenSize
Class to launch a thread which will get the screen size (inlcuding the bounds of multiple monitors)
The process of getting the dimensions is launched in a different thread and can be going on while other PAMGAURD startup processes are initialising.
| Nested Class Summary | |
|---|---|
class |
ScreenSize.GetBounds
Thread to obtain the screen bounds. |
| Field Summary | |
|---|---|
private static boolean |
hasRun
|
private static java.awt.Rectangle |
screenDimension
|
| Constructor Summary | |
|---|---|
private |
ScreenSize()
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static volatile java.awt.Rectangle screenDimension
private static volatile boolean hasRun
| Constructor Detail |
|---|
private ScreenSize()
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||