Class FunctionComposition

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

public class FunctionComposition extends GenericGraphApplet implements ActionListener, ItemListener
See Also:
  • Constructor Details

    • FunctionComposition

      public FunctionComposition()
  • Method Details

    • setUpMainPanel

      public void setUpMainPanel()
      Description copied from class: GenericGraphApplet
      This method is called to set up the main panel of the applet. The main panel object, of type JCMPanel, already exists in the variable mainPanel when it is called. It begins by calling setUpParser() and setUpExampleMenu(). This method processes applet parameters "Insets", "BackgroundColor", and "ForegroundColor" to set the gap and colors of the panel. It creates a DisplayCanvas and, if the applet parameter "UseLimitsPanel" is not equal to "no", it creates a LimitControlPanel. The coordinate limits are set using the "Limits" applet param, if presetn. This method assigns the Controller from the mainPanel to the member variable mainController. It then calls setUpBottomPanel(), setUpTopPanel(), setUpCanvas(), addCanvasBorder(), and, if there is a limits panel, setUpLimitsPanel(), in that order. Finally, if the value of the applet parameter "LoadFirstExample" is not "no", and if any examples were specifed, then the first ewxample is loaded.
      Overrides:
      setUpMainPanel in class GenericGraphApplet
    • itemStateChanged

      public void itemStateChanged(ItemEvent evt)
      Description copied from class: GenericGraphApplet
      Respond when user chooses an example from the example menu. (This will only happen if the param UseLoadButton is not set to "yes".)
      Specified by:
      itemStateChanged in interface ItemListener
      Overrides:
      itemStateChanged in class GenericGraphApplet
    • actionPerformed

      public void actionPerformed(ActionEvent evt)
      Description copied from class: GenericGraphApplet
      Respond when user clicks a button; not meant to be called directly.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class GenericGraphApplet
    • doLoadExample

      protected void doLoadExample(String example)
      Description copied from class: GenericGraphApplet
      This method is called when the user loads an example from the example menu (if any). The parameter is the string that defines the example. By default, this method does nothhing. It should be overridden to load the example.
      Overrides:
      doLoadExample in class GenericGraphApplet