Class DashboardController

java.lang.Object
com.example.demo.DashboardController

public class DashboardController extends Object
  • Field Details

  • Constructor Details

    • DashboardController

      public DashboardController()
  • Method Details

    • initData

      public void initData(Scenes scenes) throws MalformedURLException
      Store class instance of Scenes to manage data
      Parameters:
      scenes - Class instance storing FXML and their controllers provide interface for controllers to interact with each other
      Throws:
      MalformedURLException
    • clickDefaultRate

      public void clickDefaultRate(javafx.event.ActionEvent event)
      Click default rate button.
      Parameters:
      event - When mouse event occurs, the top-most node under cursor is picked and the event is delivered to it through capturing and bubbling phases described at EventDispatcher
    • clickLexisDiagram

      public void clickLexisDiagram(javafx.event.ActionEvent event)
      click lexis diagram button.
      Parameters:
      event - When mouse event occurs, the top-most node under cursor is picked and the event is delivered to it through capturing and bubbling phases described at EventDispatcher
    • clickAPC

      public void clickAPC(javafx.event.ActionEvent event)
      click APC button.
      Parameters:
      event - When mouse event occurs, the top-most node under cursor is picked and the event is delivered to it through capturing and bubbling phases described at EventDispatcher
    • initializeToken

      public void initializeToken(String filename)
      initialize token string
      Parameters:
      filename -
    • updateGraph

      public void updateGraph(boolean isDark, String filename, String token) throws MalformedURLException
      Send request to update Graph.
      Parameters:
      isDark - Whether user open color vision defenciency
      filename - filename of database
      Throws:
      MalformedURLException - Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a specification string or the string could not be parsed.
    • loadGraph

      public void loadGraph() throws MalformedURLException
      Load graph from local file.
      Throws:
      MalformedURLException - Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a specification string or the string could not be parsed.
    • loadAPCGraph

      public void loadAPCGraph() throws MalformedURLException
      Load graph from local file for APC analysis.
      Throws:
      MalformedURLException - Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a specification string or the string could not be parsed.
    • updateTheme

      public void updateTheme(boolean isDark) throws MalformedURLException
      Update theme
      Parameters:
      isDark - whether user turn on color vesion defenciency
      Throws:
      MalformedURLException - Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a specification string or the string could not be parsed.
    • initialize

      public void initialize() throws MalformedURLException
      Initialize when get dashboard controller.
      Throws:
      MalformedURLException - Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a specification string or the string could not be parsed.