How to create a morph effect from one shape to another?

The javafx 1.3 tutorial describes how to convert a rectangle to a circle? ...

enter image description here

The code is clear and very ... simple.

Is there an equivalent conversion in javafx 2.2?

+3


source to share


2 answers


Waiting for a better solution, I found a job.

My solution is based on the morphing algorithm available in jfxrt.jar ( com.sun.javafx.sg.prism.ShapeEvaluator

) and method javafx.scene.shape.Shape#createFromGeomShape

. Since these parts of the code are not visible, I copied them.



The code is available in this value .

+2


source


As per existing javadoc and function description:

http://javafx-jira.kenai.com/browse/RT-11089

there is no such conversion supported by JavaFX 2.2.



This feature does not currently have a fix version, so it is not planned to appear in JavaFX 8 (at least for now). Perhaps he will appear in the future.

By the way, you can vote for this feature. If it has a high priority, it will most likely be fixed.

+1


source







All Articles