Class PolarPlotter

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

public class PolarPlotter extends JRootPane implements ListSelectionListener
This applet is a demonstration of the possible applications of the Jep mathematical expression parser.

The FunctionPlotter class arranges the text field and GraphCanvas classes and requests a repainting of the graph when the expression in the text field changes. All plotting (and interaction with the Jep API) is performed in GraphCanvas class.

See Also:
  • Field Details

    • jep

      protected Jep jep
  • Constructor Details

    • PolarPlotter

      public PolarPlotter()
  • Method Details

    • init

      public void init()
      Initializes the applet FunctionPlotter
    • initJep

      protected Jep initJep()
      Initialize the jep instance
      Returns:
      the new instance
    • createGraphCanvas

      protected com.singularsys.jepexamples.applets.PolarCanvas createGraphCanvas(Jep j) throws JepException
      Throws:
      JepException
    • valueChanged

      public void valueChanged(ListSelectionEvent arg0)
      Specified by:
      valueChanged in interface ListSelectionListener
    • main

      public static void main(String[] argv)