|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.webcompmath.functions.FunctionParserExtension net.sourceforge.webcompmath.functions.WrapperFunction net.sourceforge.webcompmath.functions.beans.WCMDerivativeBean
public class WCMDerivativeBean
This class is used with GUI builders to create an object that is the derivative of some function. When you set it's function, it gets the derivative of the function you pass in and uses that as it's own definition (via a WrapperFunction).
Field Summary |
---|
Fields inherited from class net.sourceforge.webcompmath.functions.FunctionParserExtension |
---|
name |
Constructor Summary | |
---|---|
WCMDerivativeBean()
The default constructor. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Just pass through to the support class |
MathObject |
getMathObject()
Returns itself |
void |
redefine()
Update the derivative if the function changes. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
just pass through to the support class ) |
void |
setFunction(Function f)
Set this object's function to the derivative of the argument. |
void |
setName(java.lang.String name)
Fire a property change event if the name changes. |
java.lang.String |
toString()
Return the toString of the super class, unless the function is an ExpressionFunction (which is too wordy in it's toString). |
Methods inherited from class net.sourceforge.webcompmath.functions.WrapperFunction |
---|
apply, dependsOn, derivative, derivative, getArity, getFunction, getVal, getValueWithCases |
Methods inherited from class net.sourceforge.webcompmath.functions.FunctionParserExtension |
---|
appendOutputString, compileDerivative, doParse, extent, getName, setParensCanBeOptional |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sourceforge.webcompmath.data.MathObject |
---|
getName |
Constructor Detail |
---|
public WCMDerivativeBean()
Method Detail |
---|
public void setFunction(Function f)
setFunction
in class WrapperFunction
f
- The non-null function to be used in this WrapperFunction
object. It must have the same arity as the current function.WrapperFunction.setFunction(net.sourceforge.webcompmath.data.Function)
public void redefine()
public MathObject getMathObject()
getMathObject
in interface ParserMathObject
ParserMathObject.getMathObject()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface ParserMathObject
ParserMathObject.addPropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface ParserMathObject
ParserMathObject.removePropertyChangeListener(java.beans.PropertyChangeListener)
public void setName(java.lang.String name)
setName
in interface MathObject
setName
in class FunctionParserExtension
name
- name of the objectFunctionParserExtension.setName(java.lang.String)
public java.lang.String toString()
toString
in class WrapperFunction
WrapperFunction.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |