Package fr.iMath.controllers
Class InputController
java.lang.Object
fr.iMath.controllers.InputController
- All Implemented Interfaces:
javafx.fxml.Initializable
public class InputController
extends java.lang.Object
implements javafx.fxml.Initializable
JavaFX: Show the single equation UI menu
-
Field Summary
Fields Modifier and Type Field Description private Equationequationprivate javafx.scene.control.TextFieldequationAreaprivate java.lang.StringequationStringprivate javafx.scene.control.Labelerrorprivate javafx.scene.control.TextFieldevaluateValueprivate javafx.scene.control.TextFieldfromprivate javafx.scene.control.TextFieldlinspaceprivate javafx.scene.effect.Reflectionreflectionprivate javafx.scene.control.Labelresultprivate javafx.scene.control.TextFieldto -
Constructor Summary
Constructors Constructor Description InputController() -
Method Summary
Modifier and Type Method Description private voidcheckEquation()Save and create the equation when needed.voidevaluate(javafx.event.ActionEvent event)Evaluate the functionvoidhelp(javafx.event.ActionEvent event)Open the help websitevoidinitialize(java.net.URL location, java.util.ResourceBundle resources)Initialise with the default valuesvoidparametricSwitch(javafx.event.ActionEvent event)Open the parametric equation menu when the associated button is pressed.voidshowGraph(javafx.event.ActionEvent event)Show a graph when the user click on the "Show Graph" button
-
Field Details
-
from
private javafx.scene.control.TextField from -
to
private javafx.scene.control.TextField to -
linspace
private javafx.scene.control.TextField linspace -
evaluateValue
private javafx.scene.control.TextField evaluateValue -
equationArea
private javafx.scene.control.TextField equationArea -
result
private javafx.scene.control.Label result -
error
private javafx.scene.control.Label error -
equation
-
equationString
private java.lang.String equationString -
reflection
private javafx.scene.effect.Reflection reflection
-
-
Constructor Details
-
InputController
public InputController()
-
-
Method Details
-
initialize
public void initialize(java.net.URL location, java.util.ResourceBundle resources)Initialise with the default values- Specified by:
initializein interfacejavafx.fxml.Initializable- Parameters:
location- URLresources- ResourceBundle
-
showGraph
public void showGraph(javafx.event.ActionEvent event)Show a graph when the user click on the "Show Graph" button- Parameters:
event- Click event
-
evaluate
public void evaluate(javafx.event.ActionEvent event)Evaluate the function- Parameters:
event- Click event
-
help
public void help(javafx.event.ActionEvent event)Open the help website- Parameters:
event- Click event
-
parametricSwitch
public void parametricSwitch(javafx.event.ActionEvent event)Open the parametric equation menu when the associated button is pressed.- Parameters:
event- Click event
-
checkEquation
private void checkEquation()Save and create the equation when needed.
-