java.lang.Object
javafx.application.Application
com.pascalprojects.personaltracker.Main
public class Main
extends javafx.application.Application
JavaFX App for tracking sleep and water intake
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen javafx.application.Application
javafx.application.Application.Parameters
-
Feldübersicht
Von Klasse geerbte Felder javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungAdds the data to the bar chartvoid
addSleepToday
(String pSleep, javafx.scene.chart.BarChart<String, Number> pBarChart) Adds the amount of sleep today to the bar chartvoid
addWaterToday
(String pWater, javafx.scene.chart.BarChart<String, Number> pBarChart) Adds the amount of water drank today to the bar chartCreates the bar chartstatic void
Launches the applicationvoid
start
(javafx.stage.Stage stage) Starts the applicationVon Klasse geerbte Methoden javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
-
Konstruktordetails
-
Main
public Main()
-
-
Methodendetails
-
start
public void start(javafx.stage.Stage stage) Starts the application- Angegeben von:
start
in Klassejavafx.application.Application
- Parameter:
stage
- the stage to be displayed
-
addWaterToday
Adds the amount of water drank today to the bar chart- Parameter:
pWater
- the amount of water drank todaypBarChart
- the bar chart to add the data to
-
addSleepToday
Adds the amount of sleep today to the bar chart- Parameter:
pSleep
- the amount of sleep todaypBarChart
- the bar chart to add the data to
-
createChart
Creates the bar chart- Gibt zurück:
- the bar chart
-
addData
public javafx.scene.chart.BarChart<String,Number> addData(javafx.scene.chart.BarChart<String, Number> pBarchart) Adds the data to the bar chart- Parameter:
pBarchart
- the bar chart to add the data to- Gibt zurück:
- the bar chart with the data added TODO: Add the data to a database and read the data from the database
-
main
Launches the application- Parameter:
args
- the arguments
-