|
|||||||||
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
public class ParsedSuccession
A convenient way to implement successions, that is, defining them with a string that will be parsed.
ParsedFunction
Constructor Summary | |
---|---|
ParsedSuccession()
Default constructor ({an=n}) |
|
ParsedSuccession(java.lang.String s)
Standard constructor, takes a string and makes up a Succession. |
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 ParsedSuccession()
public ParsedSuccession(java.lang.String s) throws org.nfunk.jep.ParseException
s
- the string to be parsed
org.nfunk.jep.ParseException
- if the string isn't parsed correctlyParsedFunction
,
JEP
Method Detail |
---|
public double f(int n)
f
in interface SuccessionI
f
in class AbstractDrawableSuccession
n
- the non-negative integer index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |