com.caffeineowl.graphics.bezier
Class BezierUtils.CubicArrayListConsumer

java.lang.Object
  extended by com.caffeineowl.graphics.bezier.BezierUtils.CubicArrayListConsumer
All Implemented Interfaces:
CubicSegmentConsumer
Enclosing class:
BezierUtils

public static class BezierUtils.CubicArrayListConsumer
extends java.lang.Object
implements CubicSegmentConsumer

A CubicSegmentConsumer that stores the received cubic segments in an array list.


Field Summary
protected  java.util.ArrayList<java.awt.geom.CubicCurve2D> segs
           
 
Constructor Summary
BezierUtils.CubicArrayListConsumer()
           
 
Method Summary
 void processSegment(java.awt.geom.CubicCurve2D curve, double startT, double endT)
          The caller passes to the consumer a new segment to be processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

segs

protected java.util.ArrayList<java.awt.geom.CubicCurve2D> segs
Constructor Detail

BezierUtils.CubicArrayListConsumer

public BezierUtils.CubicArrayListConsumer()
Method Detail

processSegment

public void processSegment(java.awt.geom.CubicCurve2D curve,
                           double startT,
                           double endT)
Description copied from interface: CubicSegmentConsumer
The caller passes to the consumer a new segment to be processed.

Specified by:
processSegment in interface CubicSegmentConsumer
Parameters:
curve - the cubic segment
startT - the value for parameter to which the segment's start corresponds on the original curve.
endT - the value for parameter to which the segment's finish end corresponds on the original curve.