Class PathIteratorWrapper

    • Constructor Detail

      • PathIteratorWrapper

        PathIteratorWrapper​(GeomFactory2ai<?,​?,​?,​?> factory,
                            PathIterator2afp<?> iterator)
        Create the wrapper.
        Parameters:
        factory - the geometry factory.
        iterator - the original iterator.
    • Method Detail

      • isPolyline

        public boolean isPolyline()
        Description copied from interface: PathIterator2D
        Replies the path is composed only by one MOVE_TO, and a sequence of LINE_TO primitives.
        Specified by:
        isPolyline in interface PathIterator2D
        Returns:
        true if the path does not contain curve primitives, false otherwise.
      • isCurved

        public boolean isCurved()
        Description copied from interface: PathIterator2D
        Replies the path contains a curve.
        Specified by:
        isCurved in interface PathIterator2D
        Returns:
        true if the path contains curve primitives, false otherwise.
      • isMultiParts

        public boolean isMultiParts()
        Description copied from interface: PathIterator2D
        Replies the path has multiple parts, i.e. multiple MOVE_TO are inside. primitives.
        Specified by:
        isMultiParts in interface PathIterator2D
        Returns:
        true if the path has multiple move-to primitive, false otherwise.
      • isPolygon

        public boolean isPolygon()
        Description copied from interface: PathIterator2D
        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.
        Specified by:
        isPolygon in interface PathIterator2D
        Returns:
        true if the path does not contain curve primitives, false otherwise.
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator