public final class Platform extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canMoveWindows()
|
static boolean |
canResizeWindows()
|
static int |
controlOrCommandKey()
Return the modifier key for the appropriate accelerator key for menu shortcuts:
KeyEvent.VK_CONTROL
(default) or KeyEvent.VK_META (MacOS.) |
static int |
controlOrCommandMask()
Return the modifier mask for the appropriate accelerator key for menu shortcuts:
Event.CTRL_MASK (default)
or Event.META_MASK (MacOS.) |
static boolean |
isHPUX()
Indicates whether the operating system is HP-UX.
|
static boolean |
isLinux()
Indicates whether the operating system is Linux.
|
static boolean |
isMacintosh()
Indicates whether the operating system is a Macintosh OS.
|
static boolean |
isOSX()
Indicates whether the operating system is Mac OS X.
|
static boolean |
isSolaris()
Indicates whether the operating system is Solaris.
|
static boolean |
isWindows()
Indicates whether the operating system is Windows.
|
static boolean |
isWindows9x()
Indicates whether the operating system is Windows 9x (95, 98 or ME.)
|
static boolean |
isWindowsXP()
Indicates whether the operating system is Windows XP.
|
static boolean |
isX11()
Indicates whether the operating system is using the X11 Windowing system.
|
static OSFamily |
osFamily() |
public static int controlOrCommandKey()
KeyEvent.VK_CONTROL
(default) or KeyEvent.VK_META (MacOS.)AssertionError - if unable to find the appropriate key.HeadlessException - if GraphicsEnvironment.isHeadless().public static int controlOrCommandMask()
Event.CTRL_MASK (default)
or Event.META_MASK (MacOS.)HeadlessException - if GraphicsEnvironment.isHeadless().public static boolean canResizeWindows()
Frame or
Dialog. Most X11 window managers will allow this, but stock Macintosh and Windows do not.true if it is possible to resize windows other than Frames or Dialogs,
false otherwise.public static boolean canMoveWindows()
Frame or
Dialog. Most X11 window managers will allow this, but stock Macintosh and Windows do not.true if it is possible to move windows other than Frames or Dialogs, false
otherwise.public static boolean isWindows()
true if the operation system is Windows, false otherwise.public static boolean isWindows9x()
true if the operating system is Windows 9x (95, 98 or ME,) false otherwise.public static boolean isWindowsXP()
true if the operating system is Windows XP, false otherwise.public static boolean isMacintosh()
true is the operating system is a Macintosh OS, false otherwise.public static boolean isOSX()
true if the operating system is Mac OS X, false otherwise.public static boolean isX11()
true if the operating system is using the X11 Windowing system, false otherwise.public static boolean isSolaris()
true if the operating system is Solaris, false otherwise.public static boolean isHPUX()
true if the operating system is HP-UX, false otherwise.public static boolean isLinux()
true if the operating system is Linux, false otherwise.Copyright © 2014 AssertJ. All rights reserved.