本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}