|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.domain2d.NBezierPath
Path along a Bezier curve of n control points. NBezierPath iterate along a path made of a BezierCurve of N control points and return the caller the successive positions at which a glyph can be positionned along the path given a certain inter-glyph distance.
| Constructor Summary | |
NBezierPath(java.awt.geom.Point2D[] controls)
|
|
| Method Summary | |
void |
atStart()
Sets the engine on the starting line. |
double |
B(int i,
int n,
double t)
Returns the Bernstein polynomial value. |
boolean |
endReached()
Returns true when the end of the path has been reached. |
static void |
main(java.lang.String[] args)
|
java.awt.geom.Point2D |
nextPoint()
Returns the next point of the path. |
int |
optimalNumberOfGlyphs(int num_pos)
Computes an optimal number of glyphs. |
int |
optimalNumberOfGlyphs(int num_pos,
java.awt.geom.Point2D[] positions)
Computes an optimal number of glyphs. |
void |
separationDistance(double distance)
Sets the separation distance between two points returned by the engine. |
protected void |
setNumberOfGlyphs(int num_pos)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NBezierPath(java.awt.geom.Point2D[] controls)
throws java.lang.IllegalArgumentException
| Method Detail |
public void atStart()
public void separationDistance(double distance)
protected void setNumberOfGlyphs(int num_pos)
public int optimalNumberOfGlyphs(int num_pos)
public int optimalNumberOfGlyphs(int num_pos,
java.awt.geom.Point2D[] positions)
public java.awt.geom.Point2D nextPoint()
public final double B(int i,
int n,
double t)
public boolean endReached()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||