Package com.sun.glass.ui.monocle
Class EGLPlatformFactory
java.lang.Object
com.sun.glass.ui.monocle.NativePlatformFactory
com.sun.glass.ui.monocle.EGLPlatformFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NativePlatformCreates a NativePlatform.protected intQueries the major version number supported by this NativePlatformFactory.protected intQueries the minor version number supported by this NativePlatformFactory.protected booleanmatches()Checks whether this NativePlatformFactory can work with the platform on which we are runningMethods inherited from class com.sun.glass.ui.monocle.NativePlatformFactory
getNativePlatform
-
Constructor Details
-
EGLPlatformFactory
public EGLPlatformFactory()
-
-
Method Details
-
matches
protected boolean matches()Description copied from class:NativePlatformFactoryChecks whether this NativePlatformFactory can work with the platform on which we are running- Specified by:
matchesin classNativePlatformFactory- Returns:
- true if we can run on this platform.
-
getMajorVersion
protected int getMajorVersion()Description copied from class:NativePlatformFactoryQueries the major version number supported by this NativePlatformFactory.- Specified by:
getMajorVersionin classNativePlatformFactory- Returns:
- the major version supported
-
getMinorVersion
protected int getMinorVersion()Description copied from class:NativePlatformFactoryQueries the minor version number supported by this NativePlatformFactory.- Specified by:
getMinorVersionin classNativePlatformFactory- Returns:
- the minor version supported
-
createNativePlatform
Description copied from class:NativePlatformFactoryCreates a NativePlatform. This is only called if matches() was previously called and returned true.- Specified by:
createNativePlatformin classNativePlatformFactory- Returns:
- a new NativePlatform.
-