public abstract class NativePlatform
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AcceleratedScreen |
accScreen |
private NativeCursor |
cursor |
private static InputDeviceRegistry |
inputDeviceRegistry |
private RunnableProcessor |
runnableProcessor |
private NativeScreen |
screen |
Modifier | Constructor and Description |
---|---|
protected |
NativePlatform() |
Modifier and Type | Method and Description |
---|---|
protected abstract NativeCursor |
createCursor()
Creates the NativeCursor for this platform.
|
protected abstract InputDeviceRegistry |
createInputDeviceRegistry()
Creates the InputDeviceRegistry for this platform.
|
protected abstract NativeScreen |
createScreen()
Creates the NativeScreen for this platform.
|
AcceleratedScreen |
getAcceleratedScreen(int[] attributes)
Gets the AcceleratedScreen for this platform
|
(package private) NativeCursor |
getCursor()
Obtains the singleton NativeCursor
|
(package private) InputDeviceRegistry |
getInputDeviceRegistry() |
(package private) RunnableProcessor |
getRunnableProcessor() |
(package private) NativeScreen |
getScreen()
Obtains the singleton NativeScreen
|
(package private) void |
shutdown()
Called once during JavaFX shutdown to release platform resources.
|
private static InputDeviceRegistry inputDeviceRegistry
private final RunnableProcessor runnableProcessor
private NativeCursor cursor
private NativeScreen screen
protected AcceleratedScreen accScreen
void shutdown()
RunnableProcessor getRunnableProcessor()
InputDeviceRegistry getInputDeviceRegistry()
protected abstract InputDeviceRegistry createInputDeviceRegistry()
protected abstract NativeCursor createCursor()
NativeCursor getCursor()
protected abstract NativeScreen createScreen()
NativeScreen getScreen()
public AcceleratedScreen getAcceleratedScreen(int[] attributes) throws GLException, java.lang.UnsatisfiedLinkError
attributes
- a sequence of pairs (GLAttibute, value)GLException
- if no OpenGL surface could be createdjava.lang.UnsatisfiedLinkError
- if native graphics libraries could not be loaded for this platform.