|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Interpolator
An Interpolator is able to take a sparse set of Points and interpolate intermediate Points.
| Method Summary | |
|---|---|
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. |
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. |
VersionProperty |
getInterpolatorVersion()
Return the Interpolator's VersionProperty. |
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()
|
| Method Detail |
|---|
Point2D addPoint(double x,
double y)
x - x-value to addy - y-value to add
Point2D insertPoint(int i,
double x,
double y)
i - index for where to add the new Pointx - x-value to addy - y-value to add
void addPoints(List<Point2D> points)
points - List of Points to add
void addPoints(int i,
List<Point2D> points)
i - index for where to add the Pointspoints - List of Points to add
Point2D setPoint(int i,
double x,
double y)
i - index of the point to setx - x-value to sety - y-value to set
void removePoint(Point2D p)
p - the Point to removePoint2D removePoint(int i)
i - index of the Point to remove
List<Point2D> getControlPoints()
List<Point2D> getInterpolatedPoints()
boolean interpolationChanged()
void clear()
VersionProperty getInterpolatorVersion()
boolean touchesControlPoints()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||