org.jaitools.imageutils.shape
Class AbstractLiteIterator

java.lang.Object
  extended by org.jaitools.imageutils.shape.AbstractLiteIterator
All Implemented Interfaces:
PathIterator
Direct Known Subclasses:
EmptyIterator, GeomCollectionIterator, LineIterator, PackedLineIterator, PointIterator, PolygonIterator

public abstract class AbstractLiteIterator
extends Object
implements PathIterator

Subclass that provides a convenient efficient currentSegment(float[] coords) implementation that reuses always the same double array. This class and the associated subclasses are not thread safe. This class was ported back and simplified from GeoTools, with permission from the author(s)

Author:
Andrea Aime

Field Summary
protected  double[] dcoords
           
 
Fields inherited from interface java.awt.geom.PathIterator
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO
 
Constructor Summary
AbstractLiteIterator()
           
 
Method Summary
 int currentSegment(float[] coords)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.geom.PathIterator
currentSegment, getWindingRule, isDone, next
 

Field Detail

dcoords

protected double[] dcoords
Constructor Detail

AbstractLiteIterator

public AbstractLiteIterator()
Method Detail

currentSegment

public int currentSegment(float[] coords)
Specified by:
currentSegment in interface PathIterator
See Also:
PathIterator.currentSegment(float[])


Copyright © 2009-2013. All Rights Reserved.