Package fr.iMath.controllers
Class ParametricInputController
java.lang.Object
fr.iMath.controllers.ParametricInputController
- All Implemented Interfaces:
javafx.fxml.Initializable
public class ParametricInputController
extends java.lang.Object
implements javafx.fxml.Initializable
JavaFX: Show the parametric UI menu
-
Field Summary
Fields Modifier and Type Field Description private javafx.scene.control.TextFieldequationAreaprivate javafx.scene.control.TextFieldequationArea2private java.lang.StringequationStringXprivate java.lang.StringequationStringYprivate EquationequationXprivate EquationequationYprivate 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 ParametricInputController() -
Method Summary
Modifier and Type Method Description voidaffineSwitch(javafx.event.ActionEvent event)Open the single equation menu when the associated button is pressed.private voidcheckEquation()Save and create the equation when needed.voidevaluate(javafx.event.ActionEvent event)Calculate a single value when the button is pressedvoidhelp(javafx.event.ActionEvent event)Show the help websitevoidinitialize(java.net.URL location, java.util.ResourceBundle resources)Initialise the menu with default valuesvoidshowGraph(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 -
equationArea2
private javafx.scene.control.TextField equationArea2 -
result
private javafx.scene.control.Label result -
error
private javafx.scene.control.Label error -
reflection
private javafx.scene.effect.Reflection reflection -
equationX
-
equationY
-
equationStringX
private java.lang.String equationStringX -
equationStringY
private java.lang.String equationStringY
-
-
Constructor Details
-
ParametricInputController
public ParametricInputController()
-
-
Method Details
-
initialize
public void initialize(java.net.URL location, java.util.ResourceBundle resources)Initialise the menu with default values- Specified by:
initializein interfacejavafx.fxml.Initializable- Parameters:
location- URlresources- ResourceBundle
-
evaluate
public void evaluate(javafx.event.ActionEvent event)Calculate a single value when the button is pressed- Parameters:
event- Click event
-
help
public void help(javafx.event.ActionEvent event)Show the help website- Parameters:
event- ClickEvent
-
showGraph
public void showGraph(javafx.event.ActionEvent event)Show a graph when the user click on the "Show Graph" button- Parameters:
event- Click event
-
affineSwitch
public void affineSwitch(javafx.event.ActionEvent event)Open the single equation menu when the associated button is pressed.- Parameters:
event- Click event
-
checkEquation
private void checkEquation()Save and create the equation when needed.
-