| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final int | |
| pack-priv final long | |
| pack-priv final int | |
| pack-priv final int | |
| pack-priv final int | |
| pack-priv final int | |
| pack-priv final float | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | getDepth()
Implements com. Returns the bit depth of the screen/ |
| public int | getDPI()
Implements com. Returns the number of pixels per inch in the screen. |
| public int | getHeight()
Implements com. Returns the pixel height of the screen. |
| public int | getNativeFormat()
Implements com. Returns the native format of the screen, as a constant from the Pixels class. |
| public long | getNativeHandle()
Implements com. Returns a native handle for the screen. |
| public int | getOffsetX()
Overrides default com. Returns the horizontal start position of this screen relative to the total combined screen size. |
| public int | getOffsetY()
Overrides default com. Returns the vertical start position of this screen relative to the total combined screen size. |
| public float | getScale()
Implements com. Return the scale factor between the physical pixels and the logical pixels e.g. hdpi = 1.5, xhdpi = 2.0 |
| public ByteBuffer | getScreenCapture()
Implements com. Returns a read-only ByteBuffer in the native pixel format containing the screen contents. |
| public int | getWidth()
Implements com. Returns the pixel width of the screen. |
| private native int | |
| private native int | |
| private native long | |
| private native int | |
| private native int | |
| private native int | |
| private native int | |
| private native float | |
| private native int | |
| public void | shutdown()
Implements com. Called during JavaFX shutdown to release the screen. |
| public void | swapBuffers()
Implements com. Called on the JavaFX application thread when pixel data for all windows has been uploaded. |
| public void | uploadPixels(Buffer b, int x, int y, int width, int height, float alpha)
Implements com. Uploads a pixel buffer to the screen. |
| depth | back to summary |
|---|---|
| pack-priv final int depth | |
| dpi | back to summary |
|---|---|
| pack-priv final int dpi | |
| handle | back to summary |
|---|---|
| pack-priv final long handle | |
| height | back to summary |
|---|---|
| pack-priv final int height | |
| nativeFormat | back to summary |
|---|---|
| pack-priv final int nativeFormat | |
| offsetX | back to summary |
|---|---|
| pack-priv final int offsetX | |
| offsetY | back to summary |
|---|---|
| pack-priv final int offsetY | |
| scale | back to summary |
|---|---|
| pack-priv final float scale | |
| width | back to summary |
|---|---|
| pack-priv final int width | |
| EGLScreen | back to summary |
|---|---|
| public EGLScreen(int idx) | |
| getDepth | back to summary |
|---|---|
| public int getDepth() Implements com. Doc from com. Returns the bit depth of the screen/
| |
| getDPI | back to summary |
|---|---|
| public int getDPI() Implements com. Doc from com. Returns the number of pixels per inch in the screen.
| |
| getHeight | back to summary |
|---|---|
| public int getHeight() Implements com. Doc from com. Returns the pixel height of the screen.
| |
| getNativeFormat | back to summary |
|---|---|
| public int getNativeFormat() Implements com. Doc from com. Returns the native format of the screen, as a constant from the Pixels class.
| |
| getNativeHandle | back to summary |
|---|---|
| public long getNativeHandle() Implements com. Doc from com. Returns a native handle for the screen. The handle is platform-specific.
| |
| getOffsetX | back to summary |
|---|---|
| public int getOffsetX() Overrides default com. Doc from com. Returns the horizontal start position of this screen relative to the total combined screen size.
| |
| getOffsetY | back to summary |
|---|---|
| public int getOffsetY() Overrides default com. Doc from com. Returns the vertical start position of this screen relative to the total combined screen size.
| |
| getScale | back to summary |
|---|---|
| public float getScale() Implements com. Doc from com. Return the scale factor between the physical pixels and the logical pixels e.g. hdpi = 1.5, xhdpi = 2.0
| |
| getScreenCapture | back to summary |
|---|---|
| public ByteBuffer getScreenCapture() Implements com. Doc from com. Returns a read-only ByteBuffer in the native pixel format containing the screen contents.
| |
| getWidth | back to summary |
|---|---|
| public int getWidth() Implements com. Doc from com. Returns the pixel width of the screen.
| |
| nGetDepth | back to summary |
|---|---|
| private native int nGetDepth(int idx) | |
| nGetDpi | back to summary |
|---|---|
| private native int nGetDpi(int idx) | |
| nGetHandle | back to summary |
|---|---|
| private native long nGetHandle(int idx) | |
| nGetHeight | back to summary |
|---|---|
| private native int nGetHeight(int idx) | |
| nGetNativeFormat | back to summary |
|---|---|
| private native int nGetNativeFormat(int idx) | |
| nGetOffsetX | back to summary |
|---|---|
| private native int nGetOffsetX(int idx) | |
| nGetOffsetY | back to summary |
|---|---|
| private native int nGetOffsetY(int idx) | |
| nGetScale | back to summary |
|---|---|
| private native float nGetScale(int idx) | |
| nGetWidth | back to summary |
|---|---|
| private native int nGetWidth(int idx) | |
| shutdown | back to summary |
|---|---|
| public void shutdown() Implements com. Doc from com. Called during JavaFX shutdown to release the screen. Called only once.
| |
| swapBuffers | back to summary |
|---|---|
| public void swapBuffers() Implements com. Doc from com. Called on the JavaFX application thread when pixel data for all windows has been uploaded.
| |
| uploadPixels | back to summary |
|---|---|
| public void uploadPixels(Buffer b, int x, int y, int width, int height, float alpha) Implements com. Doc from com. Uploads a pixel buffer to the screen. Called on the JavaFX application thread.
| |