Class ContourCanvas

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

public class ContourCanvas extends PixelCanvas
Canvas used by the ContourPlotter applet. Uses the fastreal package to calculate values at each point.
See Also:
  • Field Details

    • jep

      protected final Jep 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
  • Constructor Details

  • Method Details

    • setExpression

      public void setExpression(Node expression)
    • paintCurve

      protected void paintCurve(int[] pixels)
      Paints the graph of the function. A null argument cause the values to be dumped to stdout.
      Specified by:
      paintCurve in class PixelCanvas
    • CCmouseMoved

      public void CCmouseMoved(MouseEvent e)
    • 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