public class OperatingSystem extends Object
Modifier and Type | Field and Description |
---|---|
private static int |
hasScreenMenuBar |
private static boolean |
java14 |
private static int |
MAC_OS_X |
private static int |
os |
private static int |
OS2 |
private static int |
UNIX |
private static int |
UNKNOWN |
private static int |
VMS |
private static int |
WINDOWS_9x |
private static int |
WINDOWS_NT |
Constructor and Description |
---|
OperatingSystem() |
Modifier and Type | Method and Description |
---|---|
static Rectangle |
getScreenBounds()
Returns the bounds of the default screen.
|
static Rectangle |
getScreenBounds(Rectangle window)
Returns the bounds of the (virtual) screen that the window should be in
|
static boolean |
hasJava14()
Returns if Java 2 version 1.4 is in use.
|
static boolean |
hasScreenMenuBar()
Returns whether the screen menu bar on Mac OS X is in use.
|
static boolean |
isDOSDerived()
Returns if we're running Windows 95/98/ME/NT/2000/XP, or OS/2.
|
static boolean |
isMacOS()
Returns if we're running MacOS X.
|
static boolean |
isMacOSLF()
Returns if we're running MacOS X and using the native look and feel.
|
static boolean |
isOS2()
Returns if we're running OS/2.
|
static boolean |
isUnix()
Returns if we're running Unix (this includes MacOS X).
|
static boolean |
isVMS()
Returns if we're running VMS.
|
static boolean |
isWindows()
Returns if we're running Windows 95/98/ME/NT/2000/XP.
|
static boolean |
isWindows9x()
Returns if we're running Windows 95/98/ME.
|
static boolean |
isWindowsNT()
Returns if we're running Windows NT/2000/XP.
|
static boolean |
isX11()
Returns if this OS is likely to be using X11 as the graphics
system.
|
private static final int UNIX
private static final int WINDOWS_9x
private static final int WINDOWS_NT
private static final int OS2
private static final int MAC_OS_X
private static final int VMS
private static final int UNKNOWN
private static int os
private static boolean java14
private static int hasScreenMenuBar
public OperatingSystem()
public static final Rectangle getScreenBounds()
public static final Rectangle getScreenBounds(Rectangle window)
window
- The bounds of the window to get the screen forpublic static final boolean isDOSDerived()
public static final boolean isWindows()
public static final boolean isWindows9x()
public static final boolean isWindowsNT()
public static final boolean isOS2()
public static final boolean isUnix()
public static final boolean isMacOS()
public static boolean isX11()
public static final boolean isVMS()
public static final boolean isMacOSLF()
public static final boolean hasScreenMenuBar()
public static final boolean hasJava14()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses