public class PlatformUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static boolean |
ANDROID |
private static boolean |
doEGLCompositing |
private static boolean |
embedded |
private static java.lang.String |
embeddedType |
private static boolean |
IOS |
private static java.lang.String |
javafxPlatform |
private static boolean |
LINUX |
private static boolean |
MAC |
private static java.lang.String |
os |
private static boolean |
SOLARIS |
private static boolean |
useEGL |
private static java.lang.String |
version |
private static boolean |
WINDOWS |
private static boolean |
WINDOWS_7_OR_LATER |
private static boolean |
WINDOWS_VISTA_OR_LATER |
Constructor and Description |
---|
PlatformUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getEmbeddedType()
Returns a string with the embedded type - ie eglx11, eglfb, dfb or null.
|
private static java.io.File |
getRTDir()
Returns the directory containing the JavaFX runtime, or null
if the directory cannot be located
|
static boolean |
isAndroid() |
static boolean |
isEmbedded()
Returns true if the platform is embedded.
|
static boolean |
isIOS()
Returns true if the operating system is iOS
|
static boolean |
isLinux()
Returns true if the operating system is a form of Linux.
|
static boolean |
isMac()
Returns true if the operating system is a form of Mac OS.
|
static boolean |
isSolaris()
Returns true if the operating system is a form of Unix, including Linux.
|
static boolean |
isUnix()
Returns true if the operating system is a form of Linux or Solaris
|
static boolean |
isWin7OrLater()
Returns true if the operating system is at least Windows 7(v6.1).
|
static boolean |
isWindows()
Returns true if the operating system is a form of Windows.
|
static boolean |
isWinVistaOrLater()
Returns true if the operating system is at least Windows Vista(v6.0).
|
private static void |
loadProperties() |
private static void |
loadPropertiesFromFile(java.io.File file) |
static boolean |
useEGL() |
static boolean |
useEGLWindowComposition() |
static boolean |
useGLES2() |
private static boolean |
versionNumberGreaterThanOrEqualTo(float value)
Utility method used to determine whether the version number as
reported by system properties is greater than or equal to a given
value.
|
private static final java.lang.String os
private static final java.lang.String version
private static final boolean embedded
private static final java.lang.String embeddedType
private static final boolean useEGL
private static final boolean doEGLCompositing
private static java.lang.String javafxPlatform
private static final boolean ANDROID
private static final boolean WINDOWS
private static final boolean WINDOWS_VISTA_OR_LATER
private static final boolean WINDOWS_7_OR_LATER
private static final boolean MAC
private static final boolean LINUX
private static final boolean SOLARIS
private static final boolean IOS
private static boolean versionNumberGreaterThanOrEqualTo(float value)
value
- The value to test against.public static boolean isWindows()
public static boolean isWinVistaOrLater()
public static boolean isWin7OrLater()
public static boolean isMac()
public static boolean isLinux()
public static boolean useEGL()
public static boolean useEGLWindowComposition()
public static boolean useGLES2()
public static boolean isSolaris()
public static boolean isUnix()
public static boolean isEmbedded()
public static java.lang.String getEmbeddedType()
public static boolean isIOS()
private static void loadPropertiesFromFile(java.io.File file)
private static java.io.File getRTDir()
private static void loadProperties()
public static boolean isAndroid()