|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--GrapherGUI.Function | +--GrapherGUI.NativeFunction
The Graph class maintains a list of Function objects which need to be plotted. The user must define the function which takes one independent value and a list of possible parameter values. This function then returns the dependent value. To see how to grab parameter values, check the SliderMatrix class.
Constructor Summary | |
NativeFunction()
|
Method Summary | |
java.awt.Color |
color()
Defines the default color of the function. |
double |
f(double in,
GrapherGUI.SliderMatrix p)
A Graph object uses this user defined object to calculate the set of coordinates for a function. |
java.lang.String |
name()
The name of the function to be displayed in the key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NativeFunction()
Method Detail |
public double f(double in, GrapherGUI.SliderMatrix p)
f
in class Function
in
- a value of the independent variablep
- containing the parameter values.
SliderMatrix
public java.awt.Color color()
color
in class Function
public java.lang.String name()
name
in class Function
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |