| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private static final int | DPI
The density of this screen in pixels per inch. |
| private static final String | FB_PATH_DEFAULT
The default value for the frame buffer device path. |
| private static final String | FB_PATH_KEY
The system property for setting the frame buffer device path. |
| private final FileChannel | |
| private final EPDFrameBuffer | |
| private final ByteBuffer | |
| private final String | |
| private final int | |
| private boolean | |
| private final PlatformLogger | |
| private final Framebuffer | |
| private static final float | SCALE
The ratio of physical pixels to logical pixels on this screen. |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private 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 synchronized 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. |
| public synchronized void | shutdown()
Implements com. Called during JavaFX shutdown to release the screen. |
| public synchronized void | swapBuffers()
Implements com. Called on the JavaFX application thread when pixel data for all windows has been uploaded. |
| public String | |
| public synchronized 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. |
| private void |
| bitDepth | back to summary |
|---|---|
| private final int bitDepth | |
| DPI | back to summary |
|---|---|
| private static final int DPI The density of this screen in pixels per inch. For now, the value is hard-coded to the density of a 6-inch display panel with 800 x 600 px at 167 ppi. | |
| FB_PATH_DEFAULT | back to summary |
|---|---|
| private static final String FB_PATH_DEFAULT The default value for the frame buffer device path. | |
| FB_PATH_KEY | back to summary |
|---|---|
| private static final String FB_PATH_KEY The system property for setting the frame buffer device path. | |
| fbChannel | back to summary |
|---|---|
| private final FileChannel fbChannel | |
| fbDevice | back to summary |
|---|---|
| private final EPDFrameBuffer fbDevice | |
| fbMapping | back to summary |
|---|---|
| private final ByteBuffer fbMapping | |
| fbPath | back to summary |
|---|---|
| private final String fbPath | |
| height | back to summary |
|---|---|
| private final int height | |
| isShutdown | back to summary |
|---|---|
| private boolean isShutdown | |
| logger | back to summary |
|---|---|
| private final PlatformLogger logger | |
| pixels | back to summary |
|---|---|
| private final Framebuffer pixels | |
| SCALE | back to summary |
|---|---|
| private static final float SCALE The ratio of physical pixels to logical pixels on this screen. For now, the value is hard-coded to a ratio of 1.0. | |
| width | back to summary |
|---|---|
| private final int width | |
| EPDScreen | back to summary |
|---|---|
| pack-priv EPDScreen() Creates a native screen for the electrophoretic display.
| |
| clearScreen | back to summary |
|---|---|
| private void clearScreen() Clears the screen. | |
| close | back to summary |
|---|---|
| private void close() Closes the Linux frame buffer device and related resources. Called only
from the | |
| 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.
| |
| 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 synchronized 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.
| |
| shutdown | back to summary |
|---|---|
| public synchronized void shutdown() Implements com. Doc from com. Called during JavaFX shutdown to release the screen. Called only once.
| |
| swapBuffers | back to summary |
|---|---|
| public synchronized void swapBuffers() Implements com. Doc from com. Called on the JavaFX application thread when pixel data for all windows has been uploaded.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| uploadPixels | back to summary |
|---|---|
| public synchronized 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.
| |
| writeBuffer | back to summary |
|---|---|
| private void writeBuffer() Writes the content of the off-screen buffer to the Linux frame buffer, if necessary. If the frame buffer is mapped, the content to display is already there, and this method does nothing. | |