APIdia Launch Partner
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 String
private static final boolean
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 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
isHeadless()

Returns true if the Headless glass platform is selected

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
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
isWindows()

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

private static void
private static void
public static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ANDROIDback to summary
private static final boolean ANDROID
embeddedback to summary
private static final boolean embedded
embeddedTypeback to summary
private static final String embeddedType
HEADLESSback to summary
private static final boolean HEADLESS
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
WINDOWSback to summary
private static final boolean WINDOWS

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.

isHeadlessback to summary
public static boolean isHeadless()

Returns true if the Headless glass platform is selected

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.

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

isWindowsback to summary
public static boolean isWindows()

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

loadPropertiesback to summary
private static void loadProperties()
loadPropertiesFromFileback to summary
private static void loadPropertiesFromFile(final File file)
useEGLback to summary
public static boolean useEGL()