Class NativePlatform


  • public abstract class NativePlatform
    extends java.lang.Object
    Abstract of a platform on which JavaFX can run.
    • Constructor Detail

      • NativePlatform

        protected NativePlatform()
    • Method Detail

      • createInputDeviceRegistry

        protected abstract com.sun.glass.ui.monocle.InputDeviceRegistry createInputDeviceRegistry()
        Creates the InputDeviceRegistry for this platform. Called once.
        Returns:
        a new InputDeviceRegistry
      • createCursor

        protected abstract com.sun.glass.ui.monocle.NativeCursor createCursor()
        Creates the NativeCursor for this platform. Called once.
        Returns:
        a new NativeCursor
      • createScreen

        protected abstract NativeScreen createScreen()
        Creates the NativeScreen for this platform. Called once.
        Returns:
        a new NativeScreen
      • getAcceleratedScreen

        public AcceleratedScreen getAcceleratedScreen​(int[] attributes)
                                               throws GLException,
                                                      java.lang.UnsatisfiedLinkError
        Gets the AcceleratedScreen for this platform
        Parameters:
        attributes - a sequence of pairs (GLAttibute, value)
        Returns:
        an AcceleratedScreen for rendering using OpenGL
        Throws:
        GLException - if no OpenGL surface could be created
        java.lang.UnsatisfiedLinkError - if native graphics libraries could not be loaded for this platform.