Package com.caffeineowl.graphics.bezier

Interface Summary
CubicFlatnessAlgorithm Interface to be adopted by classes able to compute the flatness of cubic Bezier.
CubicSegmentConsumer Behaviour for classes used to process/store java.awt.geom.CubicCurve2D segments resulted from subdivisions (see BezierUtils.adaptiveHalving(CubicCurve2D, CubicSubdivisionCriterion, CubicSegmentConsumer)).
CubicSubdivisionCriterion Interface to be implemented by algorithms that tell if a java.awt.geom.CubicCurve2D should be sub-divided in order to be more accurate represented by a straight segment.
QuadFlatnessAlgorithm Interface to be adopted by classes able to compute the flatness of quadratic Bezier.
QuadSegmentConsumer Behaviour for classes used to process/store java.awt.geom.QuadCurve2D segments resulted from subdivisions (see BezierUtils.adaptiveHalving(QuadCurve2D, QuadSubdivisionCriterion, QuadSegmentConsumer)) or approximations (see FIXME TBD).
QuadSubdivisionCriterion Interface to be implemented by algorithms that tell if a java.awt.geom.QuadCurve2D should be sub-divided in order to be more accurate represented by a straight segment.
 

Class Summary
BezierUtils Utility functions for processing Bézier curves.
BezierUtils.CubicArrayListConsumer A CubicSegmentConsumer that stores the received cubic segments in an array list.
BezierUtils.MidPointApproxSubdivCriterion The adaptive halving criterion for approximating a cubic by the mid-point approximation quadratic.
BezierUtils.MidPointApproxTransformer A CubicSegmentConsumer that wraps around a QuadSegmentConsumer and, upon receiving a cubic segment, applies the mid point approximation and passed the resulted segment into the wrapped consumer.
BezierUtils.QuadArrayListConsumer A QuadSegmentConsumer that stores the received quad segments in an array list.