Atom Atom feed

New JavaFX Script Build Posted To OpenJFX

Christopher Oliver:

We just posted a new build of JFX which contains the following fixes  
and features:


UI -

1) Shape Morphing
   - Added class javafx.ui.canvas.Morph

This provides binary shape morphing. To use it assign an initial and  
terminal Shape to its start and end attributes respectively. Then  
animate its morph attribute between 0 and 1.

Morph is a Shape and can be used like any other Shape.

Here's a simple JFXPad example:

import javafx.ui.*;
import javafx.ui.canvas.*;
import javafx.ui.filter.*;

Morph {

     morph: bind [0,.01..1] dur 2000

     fill: blue

     start: Rect {
         x: 10
         y: 10
         width: 460
         height: 140
     }

     end: Circle {cx: 200, cy: 200, radius: 100}

}


2) JavaFXPad
  - Added a dialog to add additional directories or jar files to the  
source path for JavaFXPad to search for dependent classes
  - Added rudimentary support for searching in the source editor

3) Mouse Wheel support in Canvas
Swing components (Widgets) embedded in a Canvas now receive mouse  
wheel events.

4) Baseline alignment of Text
It's now possible to align Text at its baseline, by means of its  
verticalAlignment attribute, e.g

Text {
      content: "Blah"
      verticalAlignment: BASELINE
}

Interpreter -

1) bind is now only allowed in initialization contexts
2) Fixed array assignment problem reported on openjfx forum
3) Fixed bug with while condition of dur expression reported on  
openjfx user list

JSR 223 -

1) Fixed problems reported on openjfx user list

Tags :