Ejemplo n.º 1
0
  public AbstractFunction(
      String[] expr, Color3f color, String[] bounds, float[] stepSize, Plotter plotter)
      throws IllegalExpressionException {
    this.expr = expr;
    this.plotter = plotter;
    this.visible = true;
    this.selected = false;
    this.color = color;
    this.boundsString = bounds;
    this.stepSize = stepSize;
    this.bounds = new float[6];
    for (int i = 0; i < bounds.length; i++) {
      this.bounds[i] = GuiUtil.evalString(bounds[i]);
    }

    state = FILL.FILL;
  }