Interface PathIterator2D<T extends PathElement2D>

    • Method Detail

      • getWindingRule

        @Pure
        PathWindingRule getWindingRule()
        Replies the winding rule for the path.
        Returns:
        the winding rule for the path.
      • isPolyline

        @Pure
        boolean isPolyline()
        Replies the path is composed only by one MOVE_TO, and a sequence of LINE_TO primitives.
        Returns:
        true if the path does not contain curve primitives, false otherwise.
      • isCurved

        @Pure
        boolean isCurved()
        Replies the path contains a curve.
        Returns:
        true if the path contains curve primitives, false otherwise.
      • isMultiParts

        @Pure
        boolean isMultiParts()
        Replies the path has multiple parts, i.e. multiple MOVE_TO are inside. primitives.
        Returns:
        true if the path has multiple move-to primitive, false otherwise.
      • isPolygon

        @Pure
        boolean isPolygon()
        Replies the path is composed only by one MOVE_TO, a sequence of LINE_TO or QUAD_TO or CURVE_TO or ARC_TO, and a single CLOSE primitives.
        Returns:
        true if the path does not contain curve primitives, false otherwise.
      • restartIterations

        PathIterator2D<T> restartIterations()
        Replies a reset instance of this iterator.

        The reset instance enables to restart iterations with the replied iterator.

        Returns:
        the reset iterator.
      • getGeomFactory

        GeomFactory2D<?,​?> getGeomFactory()
        Replies the factory of geometrical elements.
        Returns:
        the factory.