APIdia Launch Partner
Top Fields Constructors Methods
com.sun.glass.ui.monocle

public Class EGLPlatform

extends LinuxPlatform
Class Inheritance
Imports
java.util.ArrayList, .List

Field Summary

Modifier and TypeField and Description
private List<NativeScreen>

Constructor Summary

AccessConstructor and Description
public
EGLPlatform()

Create an EGLPlatform.

Method Summary

Modifier and TypeMethod and Description
protected NativeCursor
createCursor()

Overrides com.sun.glass.ui.monocle.LinuxPlatform.createCursor.

Creates the NativeCursor for this platform.

protected NativeScreen
createScreen()

Overrides com.sun.glass.ui.monocle.LinuxPlatform.createScreen.

Creates the NativeScreen for this platform.

protected synchronized List<NativeScreen>
createScreens()

Overrides com.sun.glass.ui.monocle.NativePlatform.createScreens.

Create NativeScreen instances for all available native screens.

public synchronized AcceleratedScreen
getAcceleratedScreen(int[] attributes)

Overrides com.sun.glass.ui.monocle.NativePlatform.getAcceleratedScreen.

Gets the AcceleratedScreen for this platform

private native int
Inherited from com.sun.glass.ui.monocle.LinuxPlatform:
createInputDeviceRegistry

Field Detail

screensback to summary
private List<NativeScreen> screens

Hides com.sun.glass.ui.monocle.NativePlatform.screens.

Constructor Detail

EGLPlatformback to summary
public EGLPlatform()

Create an EGLPlatform. If a library with specific native code is needed for this platform, it will be downloaded now. The system property monocle.egl.lib can be used to define the name of the library that should be loaded.

Method Detail

createCursorback to summary
protected NativeCursor createCursor()

Overrides com.sun.glass.ui.monocle.LinuxPlatform.createCursor.

Doc from com.sun.glass.ui.monocle.NativePlatform.createCursor.

Creates the NativeCursor for this platform. Called once.

Annotations
@Override
createScreenback to summary
protected NativeScreen createScreen()

Overrides com.sun.glass.ui.monocle.LinuxPlatform.createScreen.

Doc from com.sun.glass.ui.monocle.NativePlatform.createScreen.

Creates the NativeScreen for this platform. Called once.

Annotations
@Override
createScreensback to summary
protected synchronized List<NativeScreen> createScreens()

Overrides com.sun.glass.ui.monocle.NativePlatform.createScreens.

Doc from com.sun.glass.ui.monocle.NativePlatform.createScreens.

Create NativeScreen instances for all available native screens. The default implementation of this method will invoke the createScreen method and return a list with a single screen only. Subclasses can override this and return a list with all screens. The approach to get this list is specific to the subclass and can be done in Java or in native code.

The first element in the returned list is considered to be the primary screen.

Annotations
@Override
getAcceleratedScreenback to summary
public synchronized AcceleratedScreen getAcceleratedScreen(int[] attributes) throws GLException

Overrides com.sun.glass.ui.monocle.NativePlatform.getAcceleratedScreen.

Doc from com.sun.glass.ui.monocle.NativePlatform.getAcceleratedScreen.

Gets the AcceleratedScreen for this platform

Annotations
@Override
Exceptions
GLException:
if no OpenGL surface could be created
nGetNumberOfScreensback to summary
private native int nGetNumberOfScreens()