Example usage for javafx.scene.chart Chart setAnimated

List of usage examples for javafx.scene.chart Chart setAnimated

Introduction

In this page you can find the example usage for javafx.scene.chart Chart setAnimated.

Prototype

public final void setAnimated(boolean value) 

Source Link

Usage

From source file:gui.accessories.GraphPopup.java

private void initFX(JFXPanel fxPanel) {
    // This method is invoked on the JavaFX thread
    Stage window = new Stage();
    window.initModality(Modality.APPLICATION_MODAL);
    window.setTitle(labels.getString("PONTOS.VITORIA"));
    window.setMinWidth(500);/*from   w w  w . ja  v a  2 s.  c o m*/

    Chart chart = createStackedBarChart();
    chart.setAnimated(true);
    Scene scene = new Scene(chart);

    //show and tell
    window.setScene(scene);
    window.showAndWait();

    fxPanel.setScene(scene);
}