public class LinearInterpolator extends Object implements Interpolator
| Modifier and Type | Field and Description |
|---|---|
static org.jflux.api.common.rk.config.VersionProperty |
VERSION
Interpolator VersionProperty.
|
static String |
VERSION_NAME
Interpolator version name.
|
static String |
VERSION_NUMBER
Interpolator version number.
|
| Constructor and Description |
|---|
LinearInterpolator()
Creates a new empty LinearInterpolator.
|
| Modifier and Type | Method and Description |
|---|---|
Point2D |
addPoint(double x,
double y)
Adds a new Point with the given x and y value.
|
void |
addPoints(int i,
List<Point2D> points)
Adds a List of Point at the given index.
|
void |
addPoints(List<Point2D> points)
Adds a List of Points.
|
void |
clear()
Clears all the Points from the Interpolator.
|
boolean |
equals(Object obj) |
List<Point2D> |
getControlPoints()
Returns a list of the Interpolator's points.
|
List<Point2D> |
getInterpolatedPoints()
Returns a List of Points interpolated from the Interpolator's control
points.
|
org.jflux.api.common.rk.config.VersionProperty |
getInterpolatorVersion()
Return the Interpolator's VersionProperty.
|
int |
hashCode() |
Point2D |
insertPoint(int i,
double x,
double y)
Adds a new point at the given index.
|
boolean |
interpolationChanged()
Returns true if the List of interpolated Points has changed since last
being requested and needs to be recalculated.
|
Point2D |
removePoint(int i)
Remove the Point at the given index.
|
void |
removePoint(Point2D p)
Removes the given Point from the Interpolator.
|
Point2D |
setPoint(int i,
double x,
double y)
Sets the x and y values of the Point at the given index.
|
boolean |
touchesControlPoints() |
public static final String VERSION_NAME
public static final String VERSION_NUMBER
public static final org.jflux.api.common.rk.config.VersionProperty VERSION
public LinearInterpolator()
public Point2D addPoint(double x, double y)
InterpolatoraddPoint in interface Interpolatorx - x-value to addy - y-value to addpublic Point2D insertPoint(int i, double x, double y)
InterpolatorinsertPoint in interface Interpolatori - index for where to add the new Pointx - x-value to addy - y-value to addpublic void addPoints(List<Point2D> points)
InterpolatoraddPoints in interface Interpolatorpoints - List of Points to addpublic void addPoints(int i,
List<Point2D> points)
InterpolatoraddPoints in interface Interpolatori - index for where to add the Pointspoints - List of Points to addpublic Point2D setPoint(int i, double x, double y)
InterpolatorsetPoint in interface Interpolatori - index of the point to setx - x-value to sety - y-value to setpublic void removePoint(Point2D p)
InterpolatorremovePoint in interface Interpolatorp - the Point to removepublic Point2D removePoint(int i)
InterpolatorremovePoint in interface Interpolatori - index of the Point to removepublic List<Point2D> getControlPoints()
InterpolatorgetControlPoints in interface Interpolatorpublic List<Point2D> getInterpolatedPoints()
InterpolatorgetInterpolatedPoints in interface Interpolatorpublic boolean interpolationChanged()
InterpolatorinterpolationChanged in interface Interpolatorpublic void clear()
Interpolatorclear in interface Interpolatorpublic org.jflux.api.common.rk.config.VersionProperty getInterpolatorVersion()
InterpolatorgetInterpolatorVersion in interface Interpolatorpublic boolean touchesControlPoints()
touchesControlPoints in interface InterpolatorCopyright © 2011-2014. All Rights Reserved.