org.geotools.geometry.jts
Class AbstractLiteIterator

Object
  extended by 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.

Author:
Andrea Aime
Module:

Field Summary
protected  double[] dcoords
           
 
Fields inherited from interface 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface 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 © 1996-2010 Geotools. All Rights Reserved.