com.caffeineowl.graphics.bezier
Class BezierUtils.QuadArrayListConsumer

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

public static class BezierUtils.QuadArrayListConsumer
extends java.lang.Object
implements QuadSegmentConsumer

A QuadSegmentConsumer that stores the received quad segments in an array list.


Field Summary
protected  java.util.ArrayList<java.awt.geom.QuadCurve2D> segs
           
 
Constructor Summary
BezierUtils.QuadArrayListConsumer()
           
 
Method Summary
 void processSegment(java.awt.geom.QuadCurve2D 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.QuadCurve2D> segs
Constructor Detail

BezierUtils.QuadArrayListConsumer

public BezierUtils.QuadArrayListConsumer()
Method Detail

processSegment

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

Specified by:
processSegment in interface QuadSegmentConsumer
Parameters:
curve - the quad 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.