Class ImplicitCanvas

All Implemented Interfaces:
ComponentListener, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class ImplicitCanvas extends AbstractCanvas
Canvas used by the ImplicitPlotter. Uses the fastreal package to calculate values at each point and the polynomial package to extract polynomial coefficients.
See Also:
  • Field Details

    • jep

      protected final XJep jep
      Math parser
    • rpe

      protected RpEval rpe
      Fast evaluator
    • expression

      protected Node expression
      Expression to evaluate
    • xVar

      protected final Variable xVar
      "x" variable
    • yVar

      protected final Variable yVar
      "y" variable
  • Constructor Details

  • Method Details

    • setExpression

      public void setExpression(Node expression)
    • paintCurve

      protected void paintCurve(Graphics g)
      Paints the graph of the function. A null argument cause the values to be dumped to stdout.
      Specified by:
      paintCurve in class AbstractCanvas
    • dump

      public void dump()
      Dump the coordinates on the standard output
      Specified by:
      dump in class AbstractCanvas
    • ICmouseMoved

      public void ICmouseMoved(MouseEvent e)
    • keyTyped

      public void keyTyped(KeyEvent e)
      Specified by:
      keyTyped in interface KeyListener
      Overrides:
      keyTyped in class AbstractCanvas
    • getNumPts

      protected long getNumPts()
      Description copied from class: AbstractCanvas
      The number of points which are calculated
      Specified by:
      getNumPts in class AbstractCanvas
      Returns:
      the number of points