|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--GrapherGUI.Function
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 | |
Function()
|
Method Summary | |
java.awt.Color |
color()
Defines the default color of the function. |
abstract double |
f(double in,
GrapherGUI.SliderMatrix p)
A Graph object uses this user defined object to calculate the set of coordinates for a function. |
abstract 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 Function()
Method Detail |
public abstract double f(double in, GrapherGUI.SliderMatrix p)
in
- a value of the independent variablep
- containing the parameter values.
SliderMatrix
public java.awt.Color color()
public abstract java.lang.String name()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |