JavaFX layout

Hi,

At last, I have started to work on JavaFX. For my first development, I share with you a new Layout named RefPointLayout. It’s principal is simple as you define one node position or two points node relatively to some reference points.

With one point you can set only the node position. With two points you can set the node position and size. The below diagram shows you the main key points of this layout :

refpoint

Let’s see together an example with scaled node and fixed size node. The HMI contains two scalable list views and two fixed size buttons. For the list view of the left side, its top left corner is relative to the top left parent reference point and the bottom right corner is relative to the bottom centre parent reference point. This way it is following window resize with a constant delta x and y. For the two buttons their position is set relatively to the middle centre reference point.

RefPointLayoutThe code to create the above HMi is the following :

In order to compile the above code, you need to download Ermine.jar. The layout is also available as a pane. Personally I quite like it as an independent layout interface. In the future, I might improve it by adding some customed reference points.

Cheers,

Mik

 

capcaval_logo_small Ermine_logo_small

 

New Java library : laFabrique

 

logo_w

Je suis heureux de vous annoncer la création de ma dernière librairie Java : laFabrique. Ce nouvel outil est une usine d’application Java de type open source. Elle permet de :

  • créer, de compiler vos projets,
  • mettre en forme vos livraisons en Jar ou Zip,
  • lancer facilement vos applications,
  • gérer simplement les paramètres et les propriétés de vos applications,
  • fournir aux utilisateurs de vos applications un mécanisme d’auto-documentation avec logo en ASCII.

Ces fonctions sont réalisées via du code descriptif en Java. Cela a pour avantage d’être utilisable dans n’importe quel outil Java, comme dans un IDE tel qu’Eclipse.
En synthèse «laFabrique» est une sorte de ANT ou de Gradle mais en Java et cela simplifie votre vie de développeur et ainsi améliore votre productivité.

Plus d’informations : http://lafabrique.capcaval.org

 

I am proud to anounce the first release of my latest open source Java library named lafabrique.

I am proud to announce the first release of “laFabrique”, which is a Java application factory. It provides the ability to :

  • create and compile project,
  • pack application in jar or zip,
  • simply launch your application on Linux and on Windows OS,
  • handle application properties and parameters in a simple manner,
  • provide to your application user an automatic documentation and an ASCII logo.

All these features are easy to use as it is mainly done with descriptive Java code. This is an advantage because it can be used inside any Java Tools such as Eclipse IDE.

In conclusion, laFabrique is a kind of ANT or Gradle but in 100% pure Java. It also comes with an architecture aspect within the whole CapCaval architecture.

Read more at http://lafabrique.capcaval.org