Class Evaluator

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class Evaluator extends Applet implements ActionListener
An Evaluator applet lets the user enter the values of one or more variables, and it displayes the values of one or more expressions that can involve those variables. The expression values are updated continuously as the user types.
See Also:
  • Constructor Details

    • Evaluator

      public Evaluator()
  • Method Details

    • init

      public void init()
      The init() method is called by the system to set up the applet. If the applet does not appear as a button, then init() creates the main panel of the applet and calls setUpMainPanel to set it up.
      Overrides:
      init in class Applet
    • makeMainPanel

      public JCMPanel makeMainPanel()
    • actionPerformed

      public void actionPerformed(ActionEvent evt)
      Respond when user clicks a button; not meant to be called directly. This opens and closes the separate window.
      Specified by:
      actionPerformed in interface ActionListener
    • getColorParam

      protected Color getColorParam(String paramName, Color defaultColor)
      Get The value of an applet parameter that specifies a color. The color can be specfied as a list of three numbers in the range 0 to 255 or by one of the standard color names ("black", "red", "blue", "green", "yellow", "cyan", "magenta", "gray", "darkgray", "lightgray", "pink", "orange", "white"). Color names are not case sensitive.
      Parameters:
      paramName - The name of the applet parameter.
      defaultColor - The value to be returned if getParameter(paramName) is null or is not a valid color.