Example #1
0
  /** This method controls all the parameters that need to be updated */
  public void updateCurve(boolean full) {
    if (full) {
      pointSelect = null;
      pointP = null;
      pointQ = null;
      pointR = null;
      setPointP(null);

      if (curve == null) curve = new EC();

      curve.updateCurve(
          spnrA.getSelection(),
          spnrB.getSelection(),
          50 - sliderZoom.getSelection(),
          canvasCurve.getSize());

      points = curve.getPoints();
      setCurveLabel();
    }
    canvasCurve.redraw();
  }