Class CalcActionHandler


  • public class CalcActionHandler
    extends java.lang.Object
    This singleton class handles actions related to calculations.
    • Constructor Detail

      • CalcActionHandler

        public CalcActionHandler()
    • Method Detail

      • calc

        public void calc​(int iterations)
        perform the given steps of calculation
        Parameters:
        iterations - the number of iterations to calculate
      • reset

        public void reset()
        recalc measurement and reset the calculator
      • resetModels

        public void resetModels()
        reset the model
      • setMainPanel

        public void setMainPanel​(javax.swing.JPanel mainPanel)
        Parameters:
        mainPanel - the mainPanel to set
      • getMainPanel

        public javax.swing.JPanel getMainPanel()
        Returns:
        the mainPanel
      • setModelDelegateManager

        public void setModelDelegateManager​(ModelDelegateManager modelDelegateManager)
      • setCalculator

        public void setCalculator​(Calculator calculatorManager)
      • getCalculator

        public Calculator getCalculator()