Class DashedShape.DashedIterator

  • All Implemented Interfaces:
    PathIterator
    Enclosing class:
    DashedShape

    public class DashedShape.DashedIterator
    extends Object
    implements PathIterator
    The iterator that generates the dashed segments in a streaming fashion
    Author:
    Andrea Aime - OpenGeo
    • Field Summary

      • Fields inherited from interface PathIterator

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

      Constructors 
      Constructor Description
      DashedIterator​(PathIterator delegate, float[] dashArray, float dashPhase)  
    • Constructor Detail

      • DashedIterator

        public DashedIterator​(PathIterator delegate,
                              float[] dashArray,
                              float dashPhase)
    • Method Detail

      • currentSegment

        public int currentSegment​(float[] coords)
        Specified by:
        currentSegment in interface PathIterator
      • currentSegment

        public int currentSegment​(double[] coords)
        Specified by:
        currentSegment in interface PathIterator
      • getWindingRule

        public int getWindingRule()
        Specified by:
        getWindingRule in interface PathIterator
      • isDone

        public boolean isDone()
        Specified by:
        isDone in interface PathIterator
      • next

        public void next()
        Specified by:
        next in interface PathIterator