Class RMPathIterator

  • All Implemented Interfaces:
    java.awt.geom.PathIterator

    public class RMPathIterator
    extends java.lang.Object
    implements java.awt.geom.PathIterator
    An implementation of path iterator for RMPath.
    • Field Summary

      • 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

      Constructors 
      Constructor Description
      RMPathIterator​(RMPath path, java.awt.geom.AffineTransform aTransform)
      Creates a new path iterator for given path.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int currentSegment​(double[] coords)
      Returns the current segment's segment type and segment points (by reference).
      int currentSegment​(float[] coords)
      Returns the current segment's segment type and segment points (by reference) as floats.
      int getWindingRule()
      Returns the path winding rule.
      boolean isDone()
      Returns whether path iterator is done.
      void next()
      Increments path iterator to the next segment.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RMPathIterator

        public RMPathIterator​(RMPath path,
                              java.awt.geom.AffineTransform aTransform)
        Creates a new path iterator for given path.
    • Method Detail

      • currentSegment

        public int currentSegment​(double[] coords)
        Returns the current segment's segment type and segment points (by reference).
        Specified by:
        currentSegment in interface java.awt.geom.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 java.awt.geom.PathIterator
      • getWindingRule

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

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

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