JavaFX: Fixed size label

Though JavaFX provides a component for Pagination this is based on a fixed number of pages. However consider the following use case:

You have some text of undefined length but definitely longer than can fit on a page. The text is dynamic so it is not feasible to split up the text onto several pages. Further more it may be possible that while displaying the font or the font style changes and thereby resulting in a different paging of the text.

As I have just such a use case in OpenPatrician, I did a quick test on how such a thing could be implemented.

„JavaFX: Fixed size label“ weiterlesen

JavaFX: Perspective Transformation

As stated in one of my previous articles, the PerspectiveTransformation is good for transforming the visual repensentation of a node/shape, but its original position still stays the same. This means that if I want an transformed area to react on events (like mouse clicks), I have to transform the coordinates and then define the position.

„JavaFX: Perspective Transformation“ weiterlesen

JavaFX: Deformation

Proceeding with my article series investigating the use of JavaFX for OpenPatrician, I have come to the deformation part. In this first part I want to investigate JavaFX potential to deform a rectangle into a quadrilateral. This is a non-affine transformation as the parallelism is not maintained. Usually this comes into place if you have a perspective view and have to map a rectangle.

„JavaFX: Deformation“ weiterlesen

JavaFX: Fullscreen toggle

One of the things, that I could never get to work with a Swing application is the full screen mode on a Linux (Ubuntu, Mint) machine. There was always a panel (menu bar) that would be in the way and hide part of the application. Furthermore it is inherently more difficult to handle the proper layout. Therefore I did a quick test with JavaFX to see if these issues have been overcome.

„JavaFX: Fullscreen toggle“ weiterlesen