Class MultiGraph

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

public class MultiGraph extends GenericGraphApplet
See Also:
  • Constructor Details

    • MultiGraph

      public MultiGraph()
  • Method Details

    • setUpParser

      protected void setUpParser()
      Description copied from class: GenericGraphApplet
      This method is called by setUpMainPanel() to set up the parser to be used in the applet. When it is called, a parser already esists and is stored in the member variable named parser. This method configures the parser according to the values of the applet parameters "StandardFunctions", "Booleans", "OptionalStars", "OptionalParens", and "Factorials". It then looks for function defintions in applet parameters named "Define", "Define1", "Define2", ...., and if any are found the functions are added to the parser so that they can be used in expressions. A function definition can take a form such as "g(x)=x^2" or "fred(s,t) = 3*s + sin(t)", for example, or it can be defined by a table of values. A table function is defined using the syntax decribed in the parseTableFuncDef() method. Finally, a variable is created and added to the parser using the value of the applet param "Variable", with "x" as the default variable name.
      Overrides:
      setUpParser in class GenericGraphApplet
    • setUpBottomPanel

      protected void setUpBottomPanel()
      Description copied from class: GenericGraphApplet
      This method checks the applet parameter "UseFunctionInput". If the value is anything but "no", then a panel is created that contains an ExpressionInput (stored in the member variable functionInput) and possibly a ComputeButton and lable for the input box. This panel is a JCMPanel using BorderLayout. In is stored in the member variable inputPanel and is added to the SOUTH position of the mainPanel. The method also processes applet parameters "Function", "UseComputeButton", "ComputeButtonName", and "FunctionLabel". The ComputeButton, if it exists, is stored in the member variable computeButton. Note that nothing at all is done by this method if the value of the applet parameter "UseFunctionInput" is no.
      Overrides:
      setUpBottomPanel in class GenericGraphApplet
    • setUpLimitsPanel

      protected void setUpLimitsPanel()
      Description copied from class: GenericGraphApplet
      This method sets up the limit control panel and adds it to the main panel. The limit control panel already exists when this method is called and is stored in the member variable limitsPanel. The applet parameters "TwoLimitsColumns", "UseSetLimitsButton", "UseZoomButtons", "UseEqualizeButtons", "UseRestoreButton", "PanelBackground", and "LimitsOnLeft" are processed. The limits panel is set to report its errors using the display canvas.
      Overrides:
      setUpLimitsPanel in class GenericGraphApplet
    • setUpCanvas

      protected void setUpCanvas()
      Description copied from class: GenericGraphApplet
      This method is called by mainPanel() to set up the display canvas and add it to the main panel. The canvas already exists in the member variable canvas when this method is called. This method adds only a set of axes to the canvas, sets the mainController to report errors using the canvas, and adds the canvas to the CENTER of the main panel. This method processes applet parameters "UsePanner", "CanvasColor", "UseMouseZoom", and "UseOffscreenCanvas". Typically, this method will be overridden in subclasses to add more Drawable items to the canvas. In this case, super.setUpCanvas() should be called first.
      Overrides:
      setUpCanvas 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