Class AbstractCalculable

java.lang.Object
com.dkt.graphics.extras.formula.AbstractCalculable
Direct Known Subclasses:
Calculable, ParametricCalculable

public abstract class AbstractCalculable extends Object
Author:
Federico Vera <[email protected]>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Retrieves the end point of the interval
    void
    endPoint(double end)
    The end point of the interval used to calculate this formula
    Note: this method doesn't control the values of the interval, nor the value used for the step, it's merely a container.
    Retrieves the getName for the formula
    double
    Deprecated.
    this method was deprecated because now we have individual scales for both x and y.
    double
    Retrieves the X setScale for this formula
    double
    Retrieves the Y setScale for this formula, basically every Y value is multiplied by this value
    void
    Set's a new getName for this formula
    void
    setScale(double scale)
    Deprecated.
    this method was deprecated because now we have individual scales for both x and y.
    void
    setScaleX(double scale)
    Sets the new setScale for the X formula, basically every X value is multiplied by this value
    void
    setScaleY(double scale)
    Sets the new setScale for the Y formula, basically every Y value is multiplied by this value
    double
    Retrieves the start point of the interval
    void
    startPoint(double start)
    The start point of the interval used to calculate this formula
    Note: this method doesn't control the values of the interval, nor the value used for the step, it's merely a container.
    double
    Retrieves the step used to calculate the formula in the interval.
    void
    step(double step)
    Sets the step used to evaluate the formula
    Note: this method doesn't control the values of the interval, nor the value used for the step, it's merely a container.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractCalculable

      public AbstractCalculable()
  • Method Details

    • getName

      public String getName()
      Retrieves the getName for the formula
      Returns:
      getName of the formula
    • setName

      public void setName(String name)
      Set's a new getName for this formula
      Parameters:
      name - getName of the formula
    • startPoint

      public double startPoint()
      Retrieves the start point of the interval
      Returns:
      start point
    • endPoint

      public double endPoint()
      Retrieves the end point of the interval
      Returns:
      end point
    • scaleX

      public double scaleX()
      Retrieves the X setScale for this formula
      Returns:
      X setScale
    • scaleY

      public double scaleY()
      Retrieves the Y setScale for this formula, basically every Y value is multiplied by this value
      Returns:
      Y setScale
    • step

      public double step()
      Retrieves the step used to calculate the formula in the interval.
      Returns:
      step of the interval
    • startPoint

      public void startPoint(double start)
      The start point of the interval used to calculate this formula
      Note: this method doesn't control the values of the interval, nor the value used for the step, it's merely a container.
      Parameters:
      start - start point of the interval
    • endPoint

      public void endPoint(double end)
      The end point of the interval used to calculate this formula
      Note: this method doesn't control the values of the interval, nor the value used for the step, it's merely a container.
      Parameters:
      end - end point of the interval
    • setScale

      @Deprecated public void setScale(double scale)
      Deprecated.
      this method was deprecated because now we have individual scales for both x and y. This method is still used in several projects, but it will be removed in future versions.
      Sets a getScale for both x-axis and y-axis.
      Parameters:
      scale - new getScale
      See Also:
    • getScale

      @Deprecated public double getScale()
      Deprecated.
      this method was deprecated because now we have individual scales for both x and y. This method is still used in several projects, but it will be removed in future versions.
      Retrieves the x getScale of the formula.
      Returns:
      the x getScale of the formula
      See Also:
    • setScaleX

      public void setScaleX(double scale)
      Sets the new setScale for the X formula, basically every X value is multiplied by this value
      Parameters:
      scale - setScale value
    • setScaleY

      public void setScaleY(double scale)
      Sets the new setScale for the Y formula, basically every Y value is multiplied by this value
      Parameters:
      scale - setScale value
    • step

      public void step(double step)
      Sets the step used to evaluate the formula
      Note: this method doesn't control the values of the interval, nor the value used for the step, it's merely a container.
      Parameters:
      step - new step