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

    Konstruktoren
    Konstruktor
    Beschreibung
    Main()
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    javafx.scene.chart.BarChart<String, Number>
    addData (javafx.scene.chart.BarChart<String, Number> pBarchart)
    Adds the data to the bar chart
    void
    addSleepToday (String pSleep, javafx.scene.chart.BarChart<String, Number> pBarChart)
    Adds the amount of sleep today to the bar chart
    void
    addWaterToday (String pWater, javafx.scene.chart.BarChart<String, Number> pBarChart)
    Adds the amount of water drank today to the bar chart
    javafx.scene.chart.BarChart<String, Number>
    Creates the bar chart
    static void
    main (String[] args)
    Launches the application
    void
    start (javafx.stage.Stage stage)
    Starts the application

    Von Klasse geerbte Methoden javafx.application.Application

    getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • Main

      public Main()
  • Methodendetails

    • start

      public void start (javafx.stage.Stage stage)
      Starts the application
      Angegeben von:
      start in Klasse javafx.application.Application
      Parameter:
      stage - the stage to be displayed
    • addWaterToday

      public void addWaterToday (String pWater, javafx.scene.chart.BarChart<String,Number> pBarChart)
      Adds the amount of water drank today to the bar chart
      Parameter:
      pWater - the amount of water drank today
      pBarChart - the bar chart to add the data to
    • addSleepToday

      public void addSleepToday (String pSleep, javafx.scene.chart.BarChart<String,Number> pBarChart)
      Adds the amount of sleep today to the bar chart
      Parameter:
      pSleep - the amount of sleep today
      pBarChart - the bar chart to add the data to
    • createChart

      public javafx.scene.chart.BarChart<String,Number> 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

      public static void main (String[] args)
      Launches the application
      Parameter:
      args - the arguments