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.TextField
equationArea
private javafx.scene.control.TextField
equationArea2
private java.lang.String
equationStringX
private java.lang.String
equationStringY
private Equation
equationX
private Equation
equationY
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 ParametricInputController()
-
Method Summary
Modifier and Type Method Description void
affineSwitch(javafx.event.ActionEvent event)
Open the single equation menu when the associated button is pressed.private void
checkEquation()
Save and create the equation when needed.void
evaluate(javafx.event.ActionEvent event)
Calculate a single value when the button is pressedvoid
help(javafx.event.ActionEvent event)
Show the help websitevoid
initialize(java.net.URL location, java.util.ResourceBundle resources)
Initialise the menu with default valuesvoid
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 -
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:
initialize
in 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.
-