|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.chart.fit.FunctionMap
public class FunctionMap
The idea is to provide a class that, given a chart model and an x or y value, can read off the corresponding value from the other axis. This assumes straight lines to join up consecutive points in the chart model.
Constructor Summary | |
---|---|
FunctionMap()
|
Method Summary | |
---|---|
static double |
getXApproximately(ChartModel model,
double yIn)
Returns the first point at which the line x = xIn crosses any of the line segments joining consecutive points of the chart model |
static List<Double> |
getXsApproximately(ChartModel model,
double yIn)
Returns the first point at which the line x = xIn crosses any of the line segments joining consecutive points of the chart model |
static double |
getYApproximately(ChartModel model,
double xIn)
Returns the first point at which the line x = xIn crosses any of the line segments joining consecutive points of the chart model |
static List<Double> |
getYsApproximately(ChartModel model,
double xIn)
Returns all the points at which x = xIn crosses any of the line segments joining consecutive points of the chart model |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FunctionMap()
Method Detail |
---|
public static double getXApproximately(ChartModel model, double yIn) throws ChartException
model
- the ChartModel of interestyIn
- the supplied y value
ChartException
public static List<Double> getXsApproximately(ChartModel model, double yIn) throws BelowBoundsException, AboveBoundsException
model
- the model in which we are finding x valuesyIn
- the y value of interest
BelowBoundsException
AboveBoundsException
public static List<Double> getYsApproximately(ChartModel model, double xIn) throws BelowBoundsException, AboveBoundsException
model
- the chart model in which we are finding y valuesxIn
- the x value of interest
BelowBoundsException
AboveBoundsException
public static double getYApproximately(ChartModel model, double xIn) throws ChartException
model
- the chart model in which we are finding a y valuexIn
- the x value of interest
BelowBoundsException
AboveBoundsException
ChartException
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |