Top Fields Constructors Methods
com.sun.javafx

public Class PlatformUtil

extends Object
Class Inheritance
Imports
java.io.File, .FileInputStream, .InputStream, .IOException, java.net.MalformedURLException, .URL, java.util.Locale, .Properties

Field Summary

Modifier and TypeField and Description
private static final boolean
private static final boolean
private static final boolean
private static final String
private static final boolean
private static String
private static final boolean
private static final boolean
private static final String
private static final boolean
private static final boolean
private static final boolean
private static final String
private static final boolean
private static final boolean
private static final boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
getEmbeddedType()

Returns a string with the embedded type - ie eglx11, eglfb, dfb or null.

private static File
getRTDir()

Returns the directory containing the JavaFX runtime, or null if the directory cannot be located

public static boolean
public static boolean
isEmbedded()

Returns true if the platform is embedded.

public static boolean
isIOS()

Returns true if the operating system is iOS

public static boolean
isLinux()

Returns true if the operating system is a form of Linux.

public static boolean
isMac()

Returns true if the operating system is a form of Mac OS.

public static boolean
isSolaris()

Returns true if the operating system is a form of Unix, including Linux.

public static boolean
isStaticBuild()

Returns true if the current runtime is a statically linked image

public static boolean
isUnix()

Returns true if the operating system is a form of Linux or Solaris

public static boolean
isWin7OrLater()

Returns true if the operating system is at least Windows 7(v6.1).

public static boolean
isWindows()

Returns true if the operating system is a form of Windows.

public static boolean
isWinVistaOrLater()

Returns true if the operating system is at least Windows Vista(v6.0).

private static void
private static void
public static boolean
public static boolean
public static boolean
private static boolean

Returns:

false if the version number cannot be parsed as a float, otherwise the comparison against value.
versionNumberGreaterThanOrEqualTo
(float
The value to test against.
value
)

Utility method used to determine whether the version number as reported by system properties is greater than or equal to a given value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ANDROIDback to summary
private static final boolean ANDROID
doEGLCompositingback to summary
private static final boolean doEGLCompositing
embeddedback to summary
private static final boolean embedded
embeddedTypeback to summary
private static final String embeddedType
IOSback to summary
private static final boolean IOS
javafxPlatformback to summary
private static String javafxPlatform
LINUXback to summary
private static final boolean LINUX
MACback to summary
private static final boolean MAC
osback to summary
private static final String os
SOLARISback to summary
private static final boolean SOLARIS
STATIC_BUILDback to summary
private static final boolean STATIC_BUILD
useEGLback to summary
private static final boolean useEGL
versionback to summary
private static final String version
WINDOWSback to summary
private static final boolean WINDOWS
WINDOWS_7_OR_LATERback to summary
private static final boolean WINDOWS_7_OR_LATER
WINDOWS_VISTA_OR_LATERback to summary
private static final boolean WINDOWS_VISTA_OR_LATER

Constructor Detail

PlatformUtilback to summary
public PlatformUtil()

Method Detail

getEmbeddedTypeback to summary
public static String getEmbeddedType()

Returns a string with the embedded type - ie eglx11, eglfb, dfb or null.

getRTDirback to summary
private static File getRTDir()

Returns the directory containing the JavaFX runtime, or null if the directory cannot be located

isAndroidback to summary
public static boolean isAndroid()
isEmbeddedback to summary
public static boolean isEmbedded()

Returns true if the platform is embedded.

isIOSback to summary
public static boolean isIOS()

Returns true if the operating system is iOS

isLinuxback to summary
public static boolean isLinux()

Returns true if the operating system is a form of Linux.

isMacback to summary
public static boolean isMac()

Returns true if the operating system is a form of Mac OS.

isSolarisback to summary
public static boolean isSolaris()

Returns true if the operating system is a form of Unix, including Linux.

isStaticBuildback to summary
public static boolean isStaticBuild()

Returns true if the current runtime is a statically linked image

isUnixback to summary
public static boolean isUnix()

Returns true if the operating system is a form of Linux or Solaris

isWin7OrLaterback to summary
public static boolean isWin7OrLater()

Returns true if the operating system is at least Windows 7(v6.1).

isWindowsback to summary
public static boolean isWindows()

Returns true if the operating system is a form of Windows.

isWinVistaOrLaterback to summary
public static boolean isWinVistaOrLater()

Returns true if the operating system is at least Windows Vista(v6.0).

loadPropertiesback to summary
private static void loadProperties()
loadPropertiesFromFileback to summary
private static void loadPropertiesFromFile(final File file)
useEGLback to summary
public static boolean useEGL()
useEGLWindowCompositionback to summary
public static boolean useEGLWindowComposition()
useGLES2back to summary
public static boolean useGLES2()
versionNumberGreaterThanOrEqualToback to summary
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.

Parameters
value:float

The value to test against.

Returns:boolean

false if the version number cannot be parsed as a float, otherwise the comparison against value.