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
-
Method Summary
Modifier and TypeMethodDescriptiondouble
endPoint()
Retrieves the end point of the intervalvoid
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.getName()
Retrieves the getName for the formuladouble
getScale()
Deprecated.this method was deprecated because now we have individual scales for both x and y.double
scaleX()
Retrieves the X setScale for this formuladouble
scaleY()
Retrieves the Y setScale for this formula, basically every Y value is multiplied by this valuevoid
Set's a new getName for this formulavoid
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 valuevoid
setScaleY
(double scale) Sets the new setScale for the Y formula, basically every Y value is multiplied by this valuedouble
Retrieves the start point of the intervalvoid
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
step()
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.
-
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
-