|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.moioli.drawables.AbstractDrawableSuccession
public abstract class AbstractDrawableSuccession
A general succession implementation.
Constructor Summary | |
---|---|
AbstractDrawableSuccession()
Default constructor. |
Method Summary | |
---|---|
void |
drawMe(GraphicsI g,
Scale s,
java.lang.Object c)
Implements Drawable, making it possible to draw this object. |
abstract double |
f(int n)
Calculates the series n a given n index. |
double |
maxY(double minX,
double maxX)
Returns the maximum y value that should be represented in the DefaultChart for this object to be drawn properly. |
double |
minY(double minX,
double maxX)
Returns the minimum y value that should be represented in the DefaultChart for this object to be drawn properly. |
double |
safeF(int n)
Returns this.f(x), or NaN if an exception occured while computing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDrawableSuccession()
Method Detail |
---|
public abstract double f(int n)
f
in interface SuccessionI
n
- the series n index
java.lang.ArithmeticException
- if math errors are encounteredpublic double safeF(int n)
n
- the abscissa
public void drawMe(GraphicsI g, Scale s, java.lang.Object c)
drawMe
in interface DrawableI
g
- the surface where this Axes will be drawns
- the DefaultChart's Scale objectc
- the color to be used for drawingpublic double minY(double minX, double maxX)
DrawableI
minY
in interface DrawableI
minX
- the minimum x value represented in this DefaultChartmaxX
- the maximum x value represented in this DefaultChart
DrawableI.minY(double, double)
public double maxY(double minX, double maxX)
DrawableI
maxY
in interface DrawableI
minX
- the minimum x value represented in this DefaultChartmaxX
- the maximum x value represented in this DefaultChart
DrawableI.maxY(double, double)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |