Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sourceforge.jsxe
Class OperatingSystem

    java.lang.Object
      net.sourceforge.jsxe.OperatingSystem

public class OperatingSystem
extends Object

Operating system detection routines.

Since:
  jsXe 0.4 pre1
Version:
  $Id: OperatingSystem.java 983 2006-06-27 19:59:04Z ian_lewis $
Author:
  Slava Pestov, Ian Lewis (IanLewis@member.fsf.org)

Constructor Summary
`OperatingSystem()`

Method Summary
`static Rectangle` | `getScreenBounds()` Gets the screen boundries.
`static Rectangle` | `getScreenBounds(Rectangle window)` Returns the bounds of the (virtual) screen that the window should be in
`static boolean` | `hasJava15()` Returns if Java 2 version 1.5 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` | `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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### OperatingSystem

    public OperatingSystem()

Method Detail

### getScreenBounds

    public static final Rectangle getScreenBounds()

  Gets the screen boundries. Due to some slight differences in the operating system desktops, this method massages the screen boundries so they are exactly correct.

  Returns:
    the screen boundries.

### getScreenBounds

    public static final Rectangle getScreenBounds(Rectangle window)

  Returns the bounds of the (virtual) screen that the window should be in

  Parameters:
    `window` - The bounds of the window to get the screen for
  Since:
    jsXe 0.5 pre1

### isDOSDerived

    public static final boolean isDOSDerived()

  Returns if we're running Windows 95/98/ME/NT/2000/XP, or OS/2.

### isWindows

    public static final boolean isWindows()

  Returns if we're running Windows 95/98/ME/NT/2000/XP.

### isWindows9x

    public static final boolean isWindows9x()

  Returns if we're running Windows 95/98/ME.

### isWindowsNT

    public static final boolean isWindowsNT()

  Returns if we're running Windows NT/2000/XP.

### isOS2

    public static final boolean isOS2()

  Returns if we're running OS/2.

### isUnix

    public static final boolean isUnix()

  Returns if we're running Unix (this includes MacOS X).

### isMacOS

    public static final boolean isMacOS()

  Returns if we're running MacOS X.

### isMacOSLF

    public static final boolean isMacOSLF()

  Returns if we're running MacOS X and using the native look and feel.

### hasJava15

    public static final boolean hasJava15()

  Returns if Java 2 version 1.5 is in use.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD