|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.data.function.LineFunction2D
public class LineFunction2D
A function in the form y = a + bx.
Constructor Summary | |
---|---|
LineFunction2D(double a,
double b)
Constructs a new line function. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Tests this function for equality with an arbitrary object. |
double |
getIntercept()
Returns the 'a' coefficient that was specified in the constructor. |
double |
getSlope()
Returns the 'b' coefficient that was specified in the constructor. |
double |
getValue(double x)
Returns the function value. |
int |
hashCode()
Returns a hash code for this instance. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineFunction2D(double a, double b)
a
- the intercept.b
- the slope.Method Detail |
---|
public double getIntercept()
public double getSlope()
public double getValue(double x)
getValue
in interface Function2D
x
- the x-value.
public boolean equals(Object obj)
equals
in class Object
obj
- the object (null
permitted).
public int hashCode()
hashCode
in class Object
|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |