Class AbstractSplinePathBuilder<T extends SplinePath2D>

java.lang.Object
org.bzdev.scripting.ScriptingContext
org.bzdev.geom.AbstractSplinePathBuilder<T>
Direct Known Subclasses:
BasicSplinePathBuilder, SplinePathBuilder

public abstract class AbstractSplinePathBuilder<T extends SplinePath2D> extends ScriptingContext
SplinePath2D builder base class. This class allows a SplinePath2D or its subclass to be specified via a table - an array of entries, each of which specifies a point along the path (including control points) and the type of line segment.

This class is not public. Its documentation is inherited by its superclasses, which is why there are javadoc comments. The class hierarchy is somewhat unusual because AbstractSplinePathBuilder's two subclassses differ in the type of the objects they create, and those objects are created and initialized the same way.

Note: this class is declared to be public even though no classes outside this package create subclasses of it. The reason is that scripting languages (both ESP and Nashorn) will generate errors if the class is not public due to the behavior of the Java reflection API. In particular, if this class is not public, those scripting-language implementations cannot find public methods such constantWIND_NON_ZERO() when given an instance of a subclass.