/*---------------------------------------------------------------------------------------------------------------- * CupCarbon: A Smart City & IoT Wireless Sensor Network Simulator * www.cupcarbon.com * ---------------------------------------------------------------------------------------------------------------- * Copyright (C) 2013-2017 CupCarbon * ---------------------------------------------------------------------------------------------------------------- * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. *---------------------------------------------------------------------------------------------------------------- * CupCarbon U-One is part of the research project PERSEPTEUR supported by the * French Agence Nationale de la Recherche ANR * under the reference ANR-14-CE24-0017-01. * ---------------------------------------------------------------------------------------------------------------- **/ package cupcarbon; import java.io.IOException; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.layout.BorderPane; import javafx.stage.Modality; import javafx.stage.Stage; /** * @author Ahcene Bounceur * @version 3.0.0 (U-One) */ public class EnergyDrawWindow { public EnergyDrawWindow() throws IOException { Stage stage = new Stage(); stage.setTitle("Energy Consumption"); FXMLLoader loader = new FXMLLoader(); loader.setLocation(CupCarbon.class.getResource("line_chart.fxml")); BorderPane panneau = (BorderPane) loader.load(); Scene scene = new Scene(panneau); stage.setScene(scene); stage.initOwner(CupCarbon.stage); stage.initModality(Modality.APPLICATION_MODAL); stage.showAndWait(); } }