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


Java PauseTransition.playFromStart方法代码示例

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


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

示例1: initialize

import javafx.animation.PauseTransition; //导入方法依赖的package包/类
@Override
public void initialize(URL location, ResourceBundle resources) {

	tableColumnScope.setCellValueFactory(new PropertyValueFactory<>("scope"));
	tableColumnIdentifier.setCellValueFactory(new PropertyValueFactory<>("identifier"));
	tableColumnParameter.setCellValueFactory(new PropertyValueFactory<>("parameter"));
	tableColumnType.setCellValueFactory(new PropertyValueFactory<>("type"));
	tableColumnValue.setCellValueFactory(new PropertyValueFactory<>("data"));

	PauseTransition refreshLoop = new PauseTransition();
	refreshLoop.setOnFinished(e -> {
		if (toggleButtonRefresh.isSelected())
			refresh();
		refreshLoop.playFromStart();
	});
	refreshLoop.setDuration(Duration.seconds(0.5));
	refreshLoop.playFromStart();

	refresh();
}
 
开发者ID:enoy19,项目名称:keyboard-light-composer,代码行数:21,代码来源:ExternalMonitor.java

示例2: onCloseRequest

import javafx.animation.PauseTransition; //导入方法依赖的package包/类
private void onCloseRequest() {
    final char borderSign = Properties.getPropertyForTestdataApplication(KEY__TESTDATA_APPLICATION__BORDER_SIGN).charAt(0);
    final String message = Properties.getPropertyForTestdataApplication(KEY__TESTDATA_APPLICATION__MESSAGE_STOP);
    final String title = Properties.getPropertyForTestdataApplication(KEY__TESTDATA_APPLICATION__TITLE);
    LoggerFacade.getDefault().message(borderSign, 80, message + title);
    
    try {
        TestdataFacade.getDefault().shutdown();
    } catch (InterruptedException e) {
    }
    
    Injector.forgetAll();
    DatabaseFacade.getDefault().shutdown();
    
    final PauseTransition pt = new PauseTransition(LITTLE_DELAY__DURATION_125);
    pt.setOnFinished((ActionEvent event) -> {
        Platform.exit();
    });
    pt.playFromStart();
}
 
开发者ID:Naoghuman,项目名称:ABC-List,代码行数:21,代码来源:TestdataApplication.java

示例3: onCloseRequest

import javafx.animation.PauseTransition; //导入方法依赖的package包/类
private void onCloseRequest() {
    // afterburner.fx
    Injector.forgetAll();
    
    // Database
    DatabaseFacade.getDefault().shutdown();
    
    // Message
    final char borderSign = Properties.getPropertyForApplication(KEY__APPLICATION__BORDER_SIGN).charAt(0);
    final String message = Properties.getPropertyForApplication(KEY__APPLICATION__MESSAGE_STOP);
    final String title = Properties.getPropertyForApplication(KEY__APPLICATION__TITLE)
            + Properties.getPropertyForApplication(KEY__APPLICATION__VERSION);
    LoggerFacade.getDefault().message(borderSign, 80, String.format(message, title));
    
    // Timer
    final PauseTransition pt = new PauseTransition(LITTLE_DELAY__DURATION_125);
    pt.setOnFinished((ActionEvent event) -> {
        Platform.exit();
    });
    pt.playFromStart();
}
 
开发者ID:Naoghuman,项目名称:ABC-List,代码行数:22,代码来源:StartApplication.java

示例4: onCloseRequest

import javafx.animation.PauseTransition; //导入方法依赖的package包/类
private void onCloseRequest() {
    // afterburner.fx
    Injector.forgetAll();
    
    // Database
    DatabaseFacade.getDefault().shutdown();
    
    // Message
    final char borderSign = this.getProperty(KEY__APPLICATION__BORDER_SIGN).charAt(0);
    final String message = this.getProperty(KEY__APPLICATION__MESSAGE_STOP);
    final String title = this.getProperty(KEY__APPLICATION__TITLE) + this.getProperty(KEY__APPLICATION__VERSION);
    LoggerFacade.getDefault().message(borderSign, 80, String.format(message, title));
    
    // Timer
    final PauseTransition pt = new PauseTransition(DURATION__125);
    pt.setOnFinished((ActionEvent event) -> {
        Platform.exit();
    });
    pt.playFromStart();
}
 
开发者ID:Naoghuman,项目名称:Project-Templates,代码行数:21,代码来源:StartApplication.java

示例5: onCloseRequest

import javafx.animation.PauseTransition; //导入方法依赖的package包/类
private void onCloseRequest() {
    // afterburner.fx
    Injector.forgetAll();
    
    // Database
    DatabaseFacade.INSTANCE.shutdown();
    
    // Message
    final char borderSign = this.getProperty(KEY__APPLICATION__BORDER_SIGN).charAt(0);
    final String message = this.getProperty(KEY__APPLICATION__MESSAGE_STOP);
    final String title = this.getProperty(KEY__APPLICATION__TITLE) + this.getProperty(KEY__APPLICATION__VERSION);
    LoggerFacade.INSTANCE.message(borderSign, 80, String.format(message, title));
    
    // Timer
    final PauseTransition pt = new PauseTransition(DURATION__125);
    pt.setOnFinished((ActionEvent event) -> {
        Platform.exit();
    });
    pt.playFromStart();
}
 
开发者ID:Naoghuman,项目名称:Incubator,代码行数:21,代码来源:StartApplication.java

示例6: onActionShowPageProject

import javafx.animation.PauseTransition; //导入方法依赖的package包/类
private void onActionShowPageProject(final ConcreteProject concreteProject) {
    LoggerFacade.getDefault().debug(this.getClass(), "On action show page [Project] for: " + concreteProject.getName()); // NOI18N
    
    // Reset previous shown content in sample-view
    wvProjectPage.getEngine().loadContent(TemplateLoader.loadLoadingTemplate());

    final PauseTransition pt = new PauseTransition();
    pt.setDuration(Duration.millis(25.0d));
    pt.setOnFinished(event -> {
        LoggerFacade.getDefault().debug(this.getClass(), "Load project-url..."); // NOI18N

        // Show new project-view
        if (concreteProject.hasProjectURL()) {
            LoggerFacade.getDefault().debug(this.getClass(), "A project-url is defined."); // NOI18N

            wvProjectPage.getEngine().load(concreteProject.getProjectURL().get());
        }
        else {
            LoggerFacade.getDefault().warn(this.getClass(), "No project-url is defined!"); // NOI18N

            wvProjectPage.getEngine().loadContent(TemplateLoader.loadNoXyURLisDefinedTemplate(TemplateLoader.UrlType.PROJECT));
        }
    });
    
    pt.playFromStart();
}
 
开发者ID:Naoghuman,项目名称:Project-Templates,代码行数:27,代码来源:ApplicationPresenter.java

示例7: onCloseRequest

import javafx.animation.PauseTransition; //导入方法依赖的package包/类
private void onCloseRequest() {
    // afterburner.fx
    Injector.forgetAll();
    
    // Database
    DatabaseFacade.INSTANCE.shutdown();
    
    // Message
    final char borderSign = this.getProperty(KEY__APPLICATION__BORDER_SIGN).charAt(0);
    final String message = this.getProperty(KEY__APPLICATION__MESSAGE_STOP);
    final String title = this.getProperty(KEY__APPLICATION__TITLE);
    LoggerFacade.INSTANCE.message(borderSign, 80, String.format(message, title));
    
    // Timer
    final PauseTransition pt = new PauseTransition(DURATION__125);
    pt.setOnFinished((ActionEvent event) -> {
        Platform.exit();
    });
    pt.playFromStart();
}
 
开发者ID:Naoghuman,项目名称:Incubator,代码行数:21,代码来源:StartApplication.java

示例8: onCloseRequest

import javafx.animation.PauseTransition; //导入方法依赖的package包/类
private void onCloseRequest() {
    // Cleanup for next start
    PreferencesFacade.INSTANCE.putBoolean(
            IGameConfiguration.PROP__GAMEVIEW_IS_INITIALZE,
            Boolean.FALSE);
    PreferencesFacade.INSTANCE.putBoolean(
            IGameConfiguration.PROP__KEY_RELEASED__FOR_GAMEVIEW,
            Boolean.FALSE);
    PreferencesFacade.INSTANCE.putBoolean(
            IMainMenuConfiguration.PROP__MAIN_MENU_IS_SHOWN,
            Boolean.FALSE);
    
    // afterburner.fx
    Injector.forgetAll();
    
    // Message
    final char borderSign = this.getProperty(KEY__APPLICATION__BORDER_SIGN).charAt(0);
    final String message = this.getProperty(KEY__APPLICATION__MESSAGE_STOP);
    final String title = this.getProperty(KEY__APPLICATION__TITLE) + this.getProperty(KEY__APPLICATION__VERSION);
    LoggerFacade.INSTANCE.message(borderSign, 80, String.format(message, title));
    
    // Timer
    final PauseTransition pt = new PauseTransition(DURATION__125);
    pt.setOnFinished((ActionEvent event) -> {
        Platform.exit();
    });
    pt.playFromStart();
}
 
开发者ID:Naoghuman,项目名称:SokubanFX,代码行数:29,代码来源:StartApplication.java


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