| Modifier and Type | Field and Description |
|---|---|
| private float | |
| public static final Object | framebufferSwapLock
Hides com. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv native float | |
| pack-priv native int | |
| pack-priv native long | |
| pack-priv native ByteBuffer | |
| pack-priv native int | |
| pack-priv native void | |
| pack-priv native void | |
| pack-priv native void | |
| 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 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 | Returns: ByteBuffer a read-only ByteBuffer containing the screen contentsImplements 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. |
| 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
Pixel data, in BYTE_BGRA_PRE format. The byte stride of the
data is equal to width * 4. b, int The X offset of the pixel data on the screen x, int The Y offset of the pixel data on the screen y, int The pixel width of the data width, int The pixel height of the data height, float The alpha level to use to compose the data over existing
pixels alpha)Implements com. Uploads a pixel buffer to the screen. |
| density | back to summary |
|---|---|
| private float density | |
| framebufferSwapLock | back to summary |
|---|---|
| public static final Object framebufferSwapLock Hides com. An Object to lock against when swapping screen buffers. | |
| AndroidScreen | back to summary |
|---|---|
| public AndroidScreen() | |
| _getDensity | back to summary |
|---|---|
| pack-priv native float _getDensity() | |
| _getHeight | back to summary |
|---|---|
| pack-priv native int _getHeight() | |
| _getNativeHandle | back to summary |
|---|---|
| pack-priv native long _getNativeHandle() | |
| _getScreenCapture | back to summary |
|---|---|
| pack-priv native ByteBuffer _getScreenCapture() | |
| _getWidth | back to summary |
|---|---|
| pack-priv native int _getWidth() | |
| _shutdown | back to summary |
|---|---|
| pack-priv native void _shutdown() | |
| _swapBuffers | back to summary |
|---|---|
| pack-priv native void _swapBuffers() | |
| _uploadPixels | back to summary |
|---|---|
| pack-priv native void _uploadPixels(Buffer b, int x, int y, int width, int height, float alpha) | |
| 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. Returns the number of pixels per inch in the screen.
| |
| getHeight | back to summary |
|---|---|
| public int getHeight() Implements com. Returns the pixel height of the screen.
| |
| getNativeFormat | back to summary |
|---|---|
| public int getNativeFormat() Implements com. Returns the native format of the screen, as a constant from the Pixels class.
| |
| getNativeHandle | back to summary |
|---|---|
| public long getNativeHandle() Implements com. Returns a native handle for the screen. The handle is platform-specific.
| |
| 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. Returns a read-only ByteBuffer in the native pixel format containing the screen contents.
| |
| getWidth | back to summary |
|---|---|
| public int getWidth() Implements com. Returns the pixel width of the screen.
| |
| shutdown | back to summary |
|---|---|
| public void shutdown() Implements com. Called during JavaFX shutdown to release the screen. Called only once.
| |
| swapBuffers | back to summary |
|---|---|
| public void swapBuffers() Implements 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. Uploads a pixel buffer to the screen. Called on the JavaFX application thread.
| |