|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.moioli.drawables.AbstractDrawableSuccession
net.moioli.drawables.ParsedSuccession
net.moioli.drawables.ParsedSeries
public class ParsedSeries
A convenient way to implement series, that is, defining them with a string that will be parsed.
ParsedFunction
Constructor Summary | |
---|---|
ParsedSeries(int min,
java.lang.String s)
Standard constructor. |
Method Summary | |
---|---|
double |
f(int n)
Returns the y value corresponding to the specified index n. |
Methods inherited from class net.moioli.drawables.AbstractDrawableSuccession |
---|
drawMe, maxY, minY, safeF |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParsedSeries(int min, java.lang.String s) throws org.nfunk.jep.ParseException
min
- the minimum index of the seriess
- the string to be parsed
org.nfunk.jep.ParseException
- if the string couldn't be parsed correctlyParsedFunction
,
JEP
Method Detail |
---|
public double f(int n)
f
in interface SuccessionI
f
in class ParsedSuccession
n
- the non-negative integer index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |