Package javafx.animation

Examples of javafx.animation.PathTransitionBuilder


    CubicCurve cOut = new CubicCurve(cX, cY, cX, cY + val, cX + val, cY + val, cX + val, cY + 0);
//    cIn.setRotationAxis(Rotate.X_AXIS);
//    cIn.setRotate(70);
//    cOut.setRotationAxis(Rotate.X_AXIS);
//    cOut.setRotate(70);
    PathTransitionBuilder moveOut = PathTransitionBuilder.create()
        .duration(new Duration(1000))
        .node(curNode)
        .path(cOut)
        ;
   
    PathTransitionBuilder moveIn = PathTransitionBuilder.create()
        .duration(new Duration(1000))
        .node(newNode)
        .path(cIn)
        ;
     
   
    ScaleTransitionBuilder zoomOut = ScaleTransitionBuilder.create()
        .duration(new Duration(1000))
        .toX(0.2)
        .toY(0.2)
        .interpolator(Interpolator.EASE_BOTH);
      ScaleTransitionBuilder zoomIn = ScaleTransitionBuilder.create()
        .duration(new Duration(1000))
        .fromX(0.2)
        .fromY(0.2)
        .toX(0.7)
        .toY(0.7)
        .interpolator(Interpolator.EASE_BOTH);
     
      Animation main = ParallelTransitionBuilder.create()
          .children(
            zoomOut.node(curNode).build(),
            zoomIn.node(newNode).build(),
            moveIn.build(),
            moveOut.build()
            ,
            FadeTransitionBuilder.create()
              .node(curNode)
              .duration(new Duration(1000))
View Full Code Here

TOP

Related Classes of javafx.animation.PathTransitionBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.