public class Platform
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static int |
OS_AIX
Operating system is IBM AIX.
|
static int |
OS_FREEBSD
Operating system is FreeBSD.
|
static int |
OS_HP
Operating system is HP-UX.
|
static int |
OS_IRIX
Operating system is SGI IRIX.
|
static int |
OS_LINUX
Operating system is Linux.
|
static int |
OS_MAC
Operating system is Mac.
|
static int |
OS_OS2
Operating system is OS/2.
|
static int |
OS_OTHER
Operating system is unknown.
|
static int |
OS_SOLARIS
Operating system is Solaris.
|
static int |
OS_SUNOS
Operating system is Sun OS.
|
static int |
OS_TRU64
Operating system is Compaq TRU64 Unix.
|
static int |
OS_UNIX_MASK
A mask for Unix platforms.
|
static int |
OS_VMS
Operating system is Compaq OpenVMS.
|
static int |
OS_WIN_OTHER
Operating system is one of the Windows variants but we don't know which one it is.
|
static int |
OS_WIN2000
Operating system is Windows 2000.
|
static int |
OS_WIN95
Operating system is Windows 95.
|
static int |
OS_WIN98
Operating system is Windows 98.
|
static int |
OS_WINDOWS_MASK
A mask for Windows platforms.
|
static int |
OS_WINNT
Operating system is Windows NT.
|
构造器和说明 |
---|
Platform() |
限定符和类型 | 方法和说明 |
---|---|
static int |
getOperatingSystem()
Get the operating system on which NetBeans is running.
|
static java.awt.Rectangle |
getUsableScreenBounds()
Returns the usable area of the screen where applications can place its
windows.
|
static java.awt.Rectangle |
getUsableScreenBounds(java.awt.GraphicsConfiguration gconf)
Returns the usable area of the screen where applications can place its
windows.
|
static boolean |
isLargeFrameIcons()
Test whether the operating system supports icons on frames (windows).
|
static boolean |
isUnix()
Test whether NetBeans is running on some variant of Unix.
|
static boolean |
isWindows()
Test whether NetBeans is running on some variant of Windows.
|
public static final int OS_WINNT
public static final int OS_WIN95
public static final int OS_WIN98
public static final int OS_SOLARIS
public static final int OS_LINUX
public static final int OS_HP
public static final int OS_AIX
public static final int OS_IRIX
public static final int OS_SUNOS
public static final int OS_TRU64
public static final int OS_OS2
public static final int OS_MAC
public static final int OS_WIN2000
public static final int OS_VMS
public static final int OS_WIN_OTHER
public static final int OS_OTHER
public static final int OS_FREEBSD
public static final int OS_WINDOWS_MASK
public static final int OS_UNIX_MASK
public static int getOperatingSystem()
OS_*
constants (such as OS_WINNT
)public static boolean isWindows()
true
if Windows, false
if some other manner of operating systempublic static boolean isUnix()
true
some sort of Unix, false
if some other manner of operating systempublic static boolean isLargeFrameIcons()
true
if it does notpublic static java.awt.Rectangle getUsableScreenBounds()
public static java.awt.Rectangle getUsableScreenBounds(java.awt.GraphicsConfiguration gconf)
gconf
- the GraphicsConfiguration of the monitor