Does Codename One support motion like javafx PathTransition?

50 views
Skip to first unread message

ronc...@gmail.com

unread,
Dec 18, 2014, 8:25:36 PM12/18/14
to codenameone...@googlegroups.com
JavaFx has a class PathTransition to move (translate and rotate) a component along a specified (x, y) path at a specified rate.
Does Codename One have anything similar to PathTransition?

Shai Almog

unread,
Dec 19, 2014, 12:48:45 AM12/19/14
to codenameone...@googlegroups.com, ronc...@gmail.com
We don't have something quite like it and mostly move components in a linear way in our animations.
You can do something like animateLayoutAndWait() to animate a layout to one position in the path then invoke it again to animate it to the next position in the path etc.

Do you have a specific use case for a path vs. just animating from one point to the next?
Reply all
Reply to author
Forward
0 new messages