Class 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected double[] dcoords  
      • Fields inherited from interface PathIterator

        SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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[])