- Loading...
...
JavaFX on ARM runs on Linux/ARM devices. The first step to creating a port is to be able to build for existing devices. Instructions for building for ARMv6 hard-float devices on a Linux/86 desktop host are at Cross Building for Arm ARM Hard Float. Once you have followed the instructions there to install development tools and libraries and run a build, you should have binaries for ARMv6 with the hard float ABI. (The “ABI” determines what processor registers are used to pass arguments to function calls and return results. With the hard float ABI the floating point registers are used as well as the integer registers. Hard float ABI is a common configuration of Linux distributions for ARM development boards today.)
...
Monocle platforms use a naming convention of com.sun.glass.ui.monocle.<name>PlatformFactory for a platform called <name>. For example, the platform factory for TI OMAP3 devices is OMAPPlatformFactory and can be explicitly selected on the command line with -Dmonocle.platform=OMAP.
...
The platform factory check does not have to be perfect; it is allowed to respond with a false positive result. However in this case the call to its createNativePlatform() method should perform a more rigorous check and fail if necessary.
LinuxPlatform is typically a good parent class for a new NativePlatform implementation. LinuxPlatform provides standard Linux device input, a software cursor and access to /dev/fb0 for software rendering. Each of these components can be overridden separately.
...
A hardware cursor is the part of a JavaFX port that is most dependent on the specific graphics hardware and drivers used. The NativeCursor abstract class defines methods for setting cursor image, location and visibility. These methods need to be implemented for each platform that provides a hardware cursor. The NativeCursors class provides utility methods for generating framebuffer pixel buffers that use color keys for transparency. NativeCursors also provides methods for generating cursor images that are shifted down or to the right; this is needed to render cursors at the right or bottom edges of the screen.
...
Build as usual, following the instructions at Cross Building for Arm ARM Hard Float