java.lang.Object
com.example.demo.DashboardController
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclickAPC(javafx.event.ActionEvent event) click APC button.voidclickDefaultRate(javafx.event.ActionEvent event) Click default rate button.voidclickLexisDiagram(javafx.event.ActionEvent event) click lexis diagram button.voidStore class instance of Scenes to manage datavoidInitialize when get dashboard controller.voidinitializeToken(String filename) initialize token stringvoidLoad graph from local file for APC analysis.voidLoad graph from local file.voidupdateGraph(boolean isDark, String filename, String token) Send request to update Graph.voidupdateTheme(boolean isDark) Update theme
-
Field Details
-
URL
- See Also:
-
-
Constructor Details
-
DashboardController
public DashboardController()
-
-
Method Details
-
initData
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
initialize token string- Parameters:
filename-
-
updateGraph
Send request to update Graph.- Parameters:
isDark- Whether user open color vision defenciencyfilename- 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
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
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
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
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.
-