当前位置: 首页>>代码示例>>Java>>正文


Java Node.rotateProperty方法代码示例

本文整理汇总了Java中javafx.scene.Node.rotateProperty方法的典型用法代码示例。如果您正苦于以下问题:Java Node.rotateProperty方法的具体用法?Java Node.rotateProperty怎么用?Java Node.rotateProperty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javafx.scene.Node的用法示例。


在下文中一共展示了Node.rotateProperty方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: FlipInXTransition

import javafx.scene.Node; //导入方法依赖的package包/类
/**
 * Create new FlipInXTransition
 * 
 * @param node The node to affect
 */
public FlipInXTransition(final Node node) {
    super(
        node,
   new Timeline(
                new KeyFrame(Duration.millis(0), 
                    new KeyValue(node.rotateProperty(), -90, WEB_EASE),
                    new KeyValue(node.opacityProperty(), 0, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(400), 
                    new KeyValue(node.rotateProperty(), 10, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(700), 
                    new KeyValue(node.rotateProperty(), -10, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(1000), 
                    new KeyValue(node.rotateProperty(), 0, WEB_EASE),
                    new KeyValue(node.opacityProperty(), 1, WEB_EASE)
                )
            )
        );
    setCycleDuration(Duration.seconds(1));
    setDelay(Duration.seconds(0.2));
}
 
开发者ID:EricCanull,项目名称:fxexperience2,代码行数:29,代码来源:FlipInXTransition.java

示例2: FlipOutXTransition

import javafx.scene.Node; //导入方法依赖的package包/类
/**
 * Create new FlipOutXTransition
 * 
 * @param node The node to affect
 */
public FlipOutXTransition(final Node node) {
    super(
        node,
       new Timeline(
                new KeyFrame(Duration.millis(0), 
                    new KeyValue(node.rotateProperty(), 0, WEB_EASE),
                    new KeyValue(node.opacityProperty(), 1, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(1000), 
                    new KeyValue(node.rotateProperty(), -90, WEB_EASE),
                    new KeyValue(node.opacityProperty(), 0, WEB_EASE)
                )
            )
        );
    setCycleDuration(Duration.seconds(1));
    setDelay(Duration.seconds(0.2));
}
 
开发者ID:EricCanull,项目名称:fxexperience2,代码行数:23,代码来源:FlipOutXTransition.java

示例3: FlipOutYTransition

import javafx.scene.Node; //导入方法依赖的package包/类
/**
 * Create new FlipOutYTransition
 * 
 * @param node The node to affect
 */
public FlipOutYTransition(final Node node) {
    super(
        node,
     new Timeline(
                new KeyFrame(Duration.millis(0), 
                    new KeyValue(node.rotateProperty(), 0, WEB_EASE),
                    new KeyValue(node.opacityProperty(), 1, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(1000), 
                    new KeyValue(node.rotateProperty(), -90, WEB_EASE),
                    new KeyValue(node.opacityProperty(), 0, WEB_EASE)
                )
            )
        );
    setCycleDuration(Duration.seconds(1));
    setDelay(Duration.seconds(0.2));
}
 
开发者ID:EricCanull,项目名称:fxexperience2,代码行数:23,代码来源:FlipOutYTransition.java

示例4: RotateInTransition

import javafx.scene.Node; //导入方法依赖的package包/类
/**
 * Create new RotateInTransition
 * 
 * @param node The node to affect
 */
public RotateInTransition(final Node node) {
    super(
        node,
         new Timeline(
                new KeyFrame(Duration.millis(0),    
                    new KeyValue(node.opacityProperty(), 0, WEB_EASE),
                    new KeyValue(node.rotateProperty(), -200, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(1000),    
                    new KeyValue(node.opacityProperty(), 1, WEB_EASE),
                    new KeyValue(node.rotateProperty(), 0, WEB_EASE)
                )
            ));
    setCycleDuration(Duration.seconds(1));
    setDelay(Duration.seconds(0.2));
}
 
开发者ID:EricCanull,项目名称:fxexperience2,代码行数:22,代码来源:RotateInTransition.java

示例5: FlipTransition

import javafx.scene.Node; //导入方法依赖的package包/类
/**
 * Create new FlipTransition
 *
 * @param node The node to affect
 */
public FlipTransition(final Node node) {
    super(node, new Timeline(
            new KeyFrame(Duration.millis(0),
                    new KeyValue(node.rotateProperty(), 0, Interpolator.EASE_OUT),
                    new KeyValue(node.translateZProperty(), 0, Interpolator.EASE_OUT)),
            new KeyFrame(Duration.millis(400),
                    new KeyValue(node.translateZProperty(), -150, Interpolator.EASE_OUT),
                    new KeyValue(node.rotateProperty(), -170, Interpolator.EASE_OUT)),
            new KeyFrame(Duration.millis(500),
                    new KeyValue(node.translateZProperty(), -150, Interpolator.EASE_IN),
                    new KeyValue(node.rotateProperty(), -190, Interpolator.EASE_IN),
                    new KeyValue(node.scaleXProperty(), 1, Interpolator.EASE_IN),
                    new KeyValue(node.scaleYProperty(), 1, Interpolator.EASE_IN)),
            new KeyFrame(Duration.millis(800),
                    new KeyValue(node.translateZProperty(), 0, Interpolator.EASE_IN),
                    new KeyValue(node.rotateProperty(), -360, Interpolator.EASE_IN),
                    new KeyValue(node.scaleXProperty(), 0.95, Interpolator.EASE_IN),
                    new KeyValue(node.scaleYProperty(), 0.95, Interpolator.EASE_IN)),
            new KeyFrame(Duration.millis(1000),
                    new KeyValue(node.scaleXProperty(), 1, Interpolator.EASE_IN),
                    new KeyValue(node.scaleYProperty(), 1, Interpolator.EASE_IN))));
    this.flipNode = node;
    setCycleDuration(Duration.seconds(1));
    setDelay(Duration.seconds(0.2));
}
 
开发者ID:EricCanull,项目名称:fxexperience2,代码行数:31,代码来源:FlipTransition.java

示例6: FlipInYTransition

import javafx.scene.Node; //导入方法依赖的package包/类
/**
 * Create new FlipInYTransition
 *
 * @param node The node to affect
 */
public FlipInYTransition(final Node node) {
    super(
            node,
            new Timeline(
                    new KeyFrame(Duration.millis(0),
                            new KeyValue(node.rotateProperty(), -90, WEB_EASE),
                            new KeyValue(node.opacityProperty(), 0, WEB_EASE)
                    ),
                    new KeyFrame(Duration.millis(400),
                            new KeyValue(node.rotateProperty(), 10, WEB_EASE)
                    ),
                    new KeyFrame(Duration.millis(700),
                            new KeyValue(node.rotateProperty(), -10, WEB_EASE)
                    ),
                    new KeyFrame(Duration.millis(1000),
                            new KeyValue(node.rotateProperty(), 0, WEB_EASE),
                            new KeyValue(node.opacityProperty(), 1, WEB_EASE)
                    )
            )
    );
    setCycleDuration(Duration.seconds(1));
    setDelay(Duration.seconds(0.2));
}
 
开发者ID:EricCanull,项目名称:fxexperience2,代码行数:29,代码来源:FlipInYTransition.java

示例7: SwingTransition

import javafx.scene.Node; //导入方法依赖的package包/类
/**
 * Create new SwingTransition
 * 
 * @param node The node to affect
 */
public SwingTransition(final Node node) {
    super(
        node,
      new Timeline(
                new KeyFrame(Duration.millis(0), new KeyValue(node.rotateProperty(), 0, WEB_EASE)),
                new KeyFrame(Duration.millis(200), new KeyValue(node.rotateProperty(), 15, WEB_EASE)),
                new KeyFrame(Duration.millis(400), new KeyValue(node.rotateProperty(), -10, WEB_EASE)),
                new KeyFrame(Duration.millis(600), new KeyValue(node.rotateProperty(), 5, WEB_EASE)),
                new KeyFrame(Duration.millis(800), new KeyValue(node.rotateProperty(), -5, WEB_EASE)),
                new KeyFrame(Duration.millis(1000), new KeyValue(node.rotateProperty(), 0, WEB_EASE))
            )
        );
    setCycleDuration(Duration.seconds(1));
    setDelay(Duration.seconds(0.2));
}
 
开发者ID:EricCanull,项目名称:fxexperience2,代码行数:21,代码来源:SwingTransition.java

示例8: RotateOutTransition

import javafx.scene.Node; //导入方法依赖的package包/类
/**
 * Create new RotateOutTransition
 * 
 * @param node The node to affect
 */
public RotateOutTransition(final Node node) {
    super(node,new Timeline(
                new KeyFrame(Duration.millis(0),    
                    new KeyValue(node.opacityProperty(), 1, WEB_EASE),
                    new KeyValue(node.rotateProperty(), 0, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(1000),    
                    new KeyValue(node.opacityProperty(), 0, WEB_EASE),
                    new KeyValue(node.rotateProperty(), 200, WEB_EASE)
                )));
  
    setCycleDuration(Duration.seconds(1));
    setDelay(Duration.seconds(0.2));
}
 
开发者ID:EricCanull,项目名称:fxexperience2,代码行数:20,代码来源:RotateOutTransition.java

示例9: WobbleTransition

import javafx.scene.Node; //导入方法依赖的package包/类
/**
 * Create new WobbleTransition
 * 
 * @param node The node to affect
 */
public WobbleTransition(final Node node) {
    super(
        node,
       new Timeline(
                new KeyFrame(Duration.millis(0),    
                    new KeyValue(node.translateXProperty(), 0, WEB_EASE),
                    new KeyValue(node.rotateProperty(), 0, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(150),    
                    new KeyValue(node.translateXProperty(), -0.25*node.getBoundsInParent().getWidth(), WEB_EASE),
                    new KeyValue(node.rotateProperty(), -5, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(300),    
                    new KeyValue(node.translateXProperty(), 0.2*node.getBoundsInParent().getWidth(), WEB_EASE),
                    new KeyValue(node.rotateProperty(), 3, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(450),    
                    new KeyValue(node.translateXProperty(), -0.15*node.getBoundsInParent().getWidth(), WEB_EASE),
                    new KeyValue(node.rotateProperty(), -3, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(600),    
                    new KeyValue(node.translateXProperty(), 0.1*node.getBoundsInParent().getWidth(), WEB_EASE),
                    new KeyValue(node.rotateProperty(), 2, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(750),    
                    new KeyValue(node.translateXProperty(), -0.05*node.getBoundsInParent().getWidth(), WEB_EASE),
                    new KeyValue(node.rotateProperty(), -1, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(1000),    
                    new KeyValue(node.translateXProperty(), 0, WEB_EASE),
                    new KeyValue(node.rotateProperty(), 0, WEB_EASE)
                )
            )
        );
    setCycleDuration(Duration.seconds(1));
    setDelay(Duration.seconds(0.2));
}
 
开发者ID:EricCanull,项目名称:fxexperience2,代码行数:43,代码来源:WobbleTransition.java

示例10: IconRotation

import javafx.scene.Node; //导入方法依赖的package包/类
/**
 * An animation which rotates the icon of a button.
 *
 * @param graphic The graphic on which the icon should be animated, must not be null.
 */
public IconRotation(Node graphic) {
    rotateProperty = graphic.rotateProperty();

    rotation = new RotateTransition(DURATION, graphic);
    rotation.setInterpolator(EASE_BOTH);
    rotation.setCycleCount(INDEFINITE);
    rotation.setFromAngle(0);
    rotation.setToAngle(360);
}
 
开发者ID:tbressler,项目名称:waterrower-workout,代码行数:15,代码来源:IconRotation.java

示例11: TadaTransition

import javafx.scene.Node; //导入方法依赖的package包/类
/**
 * Create new TadaTransition
 * 
 * @param node The node to affect
 */
public TadaTransition(final Node node) {
    super(
        node,
        new Timeline(
                new KeyFrame(Duration.millis(0),    
                    new KeyValue(node.scaleXProperty(), 1, WEB_EASE),
                    new KeyValue(node.scaleYProperty(), 1, WEB_EASE),
                    new KeyValue(node.rotateProperty(), 0, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(100),    
                    new KeyValue(node.scaleXProperty(), 0.9, WEB_EASE),
                    new KeyValue(node.scaleYProperty(), 0.9, WEB_EASE),
                    new KeyValue(node.rotateProperty(), -3, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(200),    
                    new KeyValue(node.scaleXProperty(), 0.9, WEB_EASE),
                    new KeyValue(node.scaleYProperty(), 0.9, WEB_EASE),
                    new KeyValue(node.rotateProperty(), -3, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(300),    
                    new KeyValue(node.scaleXProperty(), 1.1, WEB_EASE),
                    new KeyValue(node.scaleYProperty(), 1.1, WEB_EASE),
                    new KeyValue(node.rotateProperty(), 3, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(400),    
                    new KeyValue(node.scaleXProperty(), 1.1, WEB_EASE),
                    new KeyValue(node.scaleYProperty(), 1.1, WEB_EASE),
                    new KeyValue(node.rotateProperty(), -3, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(500),    
                    new KeyValue(node.scaleXProperty(), 1.1, WEB_EASE),
                    new KeyValue(node.scaleYProperty(), 1.1, WEB_EASE),
                    new KeyValue(node.rotateProperty(), 3, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(600),    
                    new KeyValue(node.scaleXProperty(), 1.1, WEB_EASE),
                    new KeyValue(node.scaleYProperty(), 1.1, WEB_EASE),
                    new KeyValue(node.rotateProperty(), -3, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(700),    
                    new KeyValue(node.scaleXProperty(), 1.1, WEB_EASE),
                    new KeyValue(node.scaleYProperty(), 1.1, WEB_EASE),
                    new KeyValue(node.rotateProperty(), 3, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(800),    
                    new KeyValue(node.scaleXProperty(), 1.1, WEB_EASE),
                    new KeyValue(node.scaleYProperty(), 1.1, WEB_EASE),
                    new KeyValue(node.rotateProperty(), -3, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(900),    
                    new KeyValue(node.scaleXProperty(), 1.1, WEB_EASE),
                    new KeyValue(node.scaleYProperty(), 1.1, WEB_EASE),
                    new KeyValue(node.rotateProperty(), 3, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(1000),    
                    new KeyValue(node.scaleXProperty(), 1, WEB_EASE),
                    new KeyValue(node.scaleYProperty(), 1, WEB_EASE),
                    new KeyValue(node.rotateProperty(), 0, WEB_EASE)
                )
            )
        );
    setCycleDuration(Duration.seconds(1));
    setDelay(Duration.seconds(0.2));
}
 
开发者ID:EricCanull,项目名称:fxexperience2,代码行数:70,代码来源:TadaTransition.java


注:本文中的javafx.scene.Node.rotateProperty方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。