Package com.sun.glass.ui.monocle
Class NativePlatform
- java.lang.Object
-
- com.sun.glass.ui.monocle.NativePlatform
-
public abstract class NativePlatform extends java.lang.ObjectAbstract of a platform on which JavaFX can run.
-
-
Field Summary
Fields Modifier and Type Field Description protected AcceleratedScreenaccScreen
-
Constructor Summary
Constructors Modifier Constructor Description protectedNativePlatform()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract com.sun.glass.ui.monocle.NativeCursorcreateCursor()Creates the NativeCursor for this platform.protected abstract com.sun.glass.ui.monocle.InputDeviceRegistrycreateInputDeviceRegistry()Creates the InputDeviceRegistry for this platform.protected abstract NativeScreencreateScreen()Creates the NativeScreen for this platform.AcceleratedScreengetAcceleratedScreen(int[] attributes)Gets the AcceleratedScreen for this platform
-
-
-
Field Detail
-
accScreen
protected AcceleratedScreen accScreen
-
-
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 createdjava.lang.UnsatisfiedLinkError- if native graphics libraries could not be loaded for this platform.
-
-