Package com.dkt.graphics.extras.formula
Class AbstractCalculable
java.lang.Object
com.dkt.graphics.extras.formula.AbstractCalculable
- Direct Known Subclasses:
Calculable,ParametricCalculable
- Author:
- Federico Vera <[email protected]>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleendPoint()Retrieves the end point of the intervalvoidendPoint(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.getName()Retrieves the getName for the formuladoublegetScale()Deprecated.this method was deprecated because now we have individual scales for both x and y.doublescaleX()Retrieves the X setScale for this formuladoublescaleY()Retrieves the Y setScale for this formula, basically every Y value is multiplied by this valuevoidSet's a new getName for this formulavoidsetScale(double scale) Deprecated.this method was deprecated because now we have individual scales for both x and y.voidsetScaleX(double scale) Sets the new setScale for the X formula, basically every X value is multiplied by this valuevoidsetScaleY(double scale) Sets the new setScale for the Y formula, basically every Y value is multiplied by this valuedoubleRetrieves the start point of the intervalvoidstartPoint(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.doublestep()Retrieves the step used to calculate the formula in the interval.voidstep(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.
-
Constructor Details
-
AbstractCalculable
public AbstractCalculable()
-
-
Method Details
-
getName
Retrieves the getName for the formula- Returns:
- getName of the formula
-
setName
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.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.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. -
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
-