Class RMPathIterator

java.lang.Object
com.reportmill.graphics.RMPathIterator
All Implemented Interfaces:
PathIterator

public class RMPathIterator extends Object implements PathIterator
An implementation of path iterator for RMPath.
  • Constructor Details

    • RMPathIterator

      public RMPathIterator(RMPath path, AffineTransform aTransform)
      Creates a new path iterator for given path.
  • Method Details

    • currentSegment

      public int currentSegment(double[] coords)
      Returns the current segment's segment type and segment points (by reference).
      Specified by:
      currentSegment in interface PathIterator
    • currentSegment

      public int currentSegment(float[] coords)
      Returns the current segment's segment type and segment points (by reference) as floats.
      Specified by:
      currentSegment in interface PathIterator
    • getWindingRule

      public int getWindingRule()
      Returns the path winding rule.
      Specified by:
      getWindingRule in interface PathIterator
    • isDone

      public boolean isDone()
      Returns whether path iterator is done.
      Specified by:
      isDone in interface PathIterator
    • next

      public void next()
      Increments path iterator to the next segment.
      Specified by:
      next in interface PathIterator