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


Java Node.opacityProperty方法代码示例

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


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

示例1: FadeOutDownTransition

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

示例2: 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

示例3: 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

示例4: FadeInUpTransition

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

示例5: FadeOutUpTransition

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

示例6: FadeOutLeftTransition

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

示例7: 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

示例8: FadeOutRightTransition

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

示例9: FadeInRightTransition

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

示例10: 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

示例11: 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

示例12: createBlinker

import javafx.scene.Node; //导入方法依赖的package包/类
private Timeline createBlinker(Node node) {
    Timeline blink = new Timeline(
            new KeyFrame(
                    Duration.seconds(0),
                    new KeyValue(
                            node.opacityProperty(),
                            1,
                            Interpolator.DISCRETE
                    )
            ),
            new KeyFrame(
                    Duration.seconds(0.35),
                    new KeyValue(
                            node.opacityProperty(),
                            0,
                            Interpolator.DISCRETE
                    )
            ),
            new KeyFrame(
                    Duration.seconds(0.7),
                    new KeyValue(
                            node.opacityProperty(),
                            1,
                            Interpolator.DISCRETE
                    )
            )
    );
    blink.setCycleCount(Animation.INDEFINITE);

    return blink;
}
 
开发者ID:Moccko,项目名称:campingsimulator2017,代码行数:32,代码来源:HomeView.java

示例13: 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

示例14: BounceOutTransition

import javafx.scene.Node; //导入方法依赖的package包/类
/**
 * Create new BounceOutTransition
 * 
 * @param node The node to affect
 */
public BounceOutTransition(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 KeyFrame(Duration.millis(250),    
                    new KeyValue(node.scaleXProperty(), 0.95, WEB_EASE),
                    new KeyValue(node.scaleYProperty(), 0.95, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(500),    
                    new KeyValue(node.opacityProperty(), 1, WEB_EASE),
                    new KeyValue(node.scaleXProperty(), 1.1, WEB_EASE),
                    new KeyValue(node.scaleYProperty(), 1.1, WEB_EASE)
                ),
                new KeyFrame(Duration.millis(1000),    
                    new KeyValue(node.opacityProperty(), 0, WEB_EASE),
                    new KeyValue(node.scaleXProperty(), 0.3, WEB_EASE),
                    new KeyValue(node.scaleYProperty(), 0.3, WEB_EASE)
                )
            ));
    setCycleDuration(Duration.seconds(1));
    setDelay(Duration.seconds(0.2));
}
 
开发者ID:EricCanull,项目名称:fxexperience2,代码行数:32,代码来源:BounceOutTransition.java

示例15: FadeInLeftTransition

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


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