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 function
    void help​(javafx.event.ActionEvent event)
    Open the help website
    void initialize​(java.net.URL location, java.util.ResourceBundle resources)
    Initialise with the default values
    void 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      private Equation equation
    • equationString

      private java.lang.String equationString
    • reflection

      private javafx.scene.effect.Reflection reflection
  • Constructor Details

  • Method Details

    • initialize

      public void initialize​(java.net.URL location, java.util.ResourceBundle resources)
      Initialise with the default values
      Specified by:
      initialize in interface javafx.fxml.Initializable
      Parameters:
      location - URL
      resources - 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.