| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.webcompmath.functions.FunctionParserExtension
net.sourceforge.webcompmath.functions.TableFunction
net.sourceforge.webcompmath.functions.beans.WCMTableFunctionBean
public class WCMTableFunctionBean
This bean implements a TableFunction. It supports only the addIntervals method of adding points, via bean properties. If you wish to add explicit points other than via intervals, you should call removeAllPoints() and then add points directly via method calls to TableFunction.
| Field Summary | 
|---|
| Fields inherited from class net.sourceforge.webcompmath.functions.TableFunction | 
|---|
PIECEWISE_LINEAR, SMOOTH, STEP, STEP_LEFT, STEP_RIGHT | 
| Fields inherited from class net.sourceforge.webcompmath.functions.FunctionParserExtension | 
|---|
name | 
| Constructor Summary | |
|---|---|
WCMTableFunctionBean()
Default constructor  | 
|
| Method Summary | |
|---|---|
 void | 
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Just pass through to the support class  | 
 int | 
getIntervals()
Get the number of intervals.  | 
 MathObject | 
getMathObject()
Since this is a ParserExtension, just returns itself.  | 
 java.lang.String | 
getName()
Get the name.  | 
 int | 
getStyle()
Get the style.  | 
 double | 
getXmax()
Get the maximum x value.  | 
 double | 
getXmin()
Get the minimum x value.  | 
 void | 
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
just pass through to the support class )  | 
 void | 
setIntervals(int intervals)
Set the number of intervals.  | 
 void | 
setName(java.lang.String name)
Fire a property change event if the name changes.  | 
 void | 
setStyle(int style)
Set the style.  | 
 void | 
setXmax(double xmax)
Set the maximum x value.  | 
 void | 
setXmin(double xmin)
Set the minimum x value.  | 
| Methods inherited from class net.sourceforge.webcompmath.functions.TableFunction | 
|---|
addIntervals, addPoint, addPoints, apply, copyDataFrom, dependsOn, derivative, derivative, findPoint, getArity, getPointCount, getVal, getVal, getValueWithCases, getX, getY, removeAllPoints, removePointAt, setY | 
| Methods inherited from class net.sourceforge.webcompmath.functions.FunctionParserExtension | 
|---|
appendOutputString, compileDerivative, doParse, extent, setParensCanBeOptional | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public WCMTableFunctionBean()
| Method Detail | 
|---|
public int getStyle()
getStyle in class TableFunctionTableFunction.getStyle()public void setStyle(int style)
setStyle in class TableFunctionstyle - One of the style constants SMOOTH, PIECEWISE_LINEAR, STEP,
            STEP_LEFT, STEP_RIGHT. Other values are ignored.TableFunction.setStyle(int)public int getIntervals()
public void setIntervals(int intervals)
intervals - The number of intervals.public double getXmax()
public void setXmax(double xmax)
xmax - The max. value.public double getXmin()
public void setXmin(double xmin)
xmin - The minimum value.public java.lang.String getName()
getName in interface MathObjectgetName in class FunctionParserExtensionFunctionParserExtension.getName()public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener in interface ParserMathObjectParserMathObject.addPropertyChangeListener(java.beans.PropertyChangeListener)public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener in interface ParserMathObjectParserMathObject.removePropertyChangeListener(java.beans.PropertyChangeListener)public void setName(java.lang.String name)
setName in interface MathObjectsetName in class FunctionParserExtensionname - name of the objectFunctionParserExtension.setName(java.lang.String)public MathObject getMathObject()
getMathObject in interface ParserMathObjectParserMathObject.getMathObject()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||