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 Equation
equation
private javafx.scene.control.TextField
equationArea
private java.lang.String
equationString
private javafx.scene.control.Label
error
private javafx.scene.control.TextField
evaluateValue
private javafx.scene.control.TextField
from
private javafx.scene.control.TextField
linspace
private javafx.scene.effect.Reflection
reflection
private javafx.scene.control.Label
result
private javafx.scene.control.TextField
to
-
Constructor Summary
Constructors Constructor Description InputController()
-
Method Summary
Modifier and Type Method Description private void
checkEquation()
Save and create the equation when needed.void
evaluate(javafx.event.ActionEvent event)
Evaluate the functionvoid
help(javafx.event.ActionEvent event)
Open the help websitevoid
initialize(java.net.URL location, java.util.ResourceBundle resources)
Initialise with the default valuesvoid
parametricSwitch(javafx.event.ActionEvent event)
Open the parametric equation menu when the associated button is pressed.void
showGraph(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:
initialize
in 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.
-