|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.moioli.drawables.AbstractPlaneCurve
public abstract class AbstractPlaneCurve
A general implementation of the DrawableI and PlaneCurveI interfaces. Includes empirical minY(), maxY(), minX() and maxX() methods.
Constructor Summary | |
---|---|
AbstractPlaneCurve(double maxT)
Default constructor, requires the maximum parameter value. |
Method Summary | |
---|---|
void |
drawMe(GraphicsI g,
Scale s,
java.lang.Object c)
This method is automatically called by DefaultChart to draw the objects it contains, so end users should never call drawMe directly. |
double |
getMaxT()
Returns the maximum value the t parameter can assume. |
double |
getXMaximum()
Returns the parameter value in which the function has an x maximum with an empirical algorithm. |
double |
getXMinimum()
Returns the parameter value in which the function has an x minimum with an empirical algorithm. |
double |
getYMaximum()
Returns the parameter value in which the function has an y maximum with an empirical algorithm. |
double |
getYMinimum()
Returns the parameter value in which the function has an y minimum with an empirical algorithm. |
double |
maxX()
Returns the minimum y value that the function takes. |
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 |
minX()
Returns the minimum x value that the function takes. |
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. |
void |
setMaxT(double t)
Sets the maximum value the t parameter can assume. |
abstract double |
x(double t)
Returns the x value corresponding to the specified t (any point in this function has coordinates (x(t),y(t)). |
abstract double |
y(double t)
Returns the y value corresponding to the specified t (any point in this function has coordinates (x(t),y(t)). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractPlaneCurve(double maxT)
maxT
- the maximum parameter valueMethod Detail |
---|
public double getMaxT()
PlaneCurveI
getMaxT
in interface PlaneCurveI
PlaneCurveI.getMaxT()
public void setMaxT(double t)
PlaneCurveI
setMaxT
in interface PlaneCurveI
t
- the maximum t valuePlaneCurveI.setMaxT(double t)
public abstract double x(double t)
PlaneCurveI
x
in interface PlaneCurveI
t
- the parameter's value
PlaneCurveI.x(double t)
public abstract double y(double t)
PlaneCurveI
y
in interface PlaneCurveI
t
- the parameter's value
PlaneCurveI.y(double t)
public double getXMinimum()
public double getXMaximum()
public double getYMinimum()
public double getYMaximum()
public double minX()
public double maxX()
public 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)
public void drawMe(GraphicsI g, Scale s, java.lang.Object c)
DrawableI
drawMe
in interface DrawableI
g
- the surface where this object will be drawns
- the DefaultChart's Scale objectc
- the color to be used for drawingDrawableI.drawMe(GraphicsI g, Scale s, Object c)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |