Class MultiShape3ai.AbstractMultiShapePathIterator<IE extends PathElement3ai>

    • Constructor Detail

      • AbstractMultiShapePathIterator

        public AbstractMultiShapePathIterator​(List<? extends Shape3ai<?,​?,​IE,​?,​?,​?>> list,
                                              GeomFactory3ai<IE,​?,​?,​?> factory)
        Constructor.
        Parameters:
        list - the list of the shapes to iterate on.
        factory - the factory of path elements.
    • Method Detail

      • delayedInit

        protected void delayedInit​(List<? extends Shape3ai<?,​?,​IE,​?,​?,​?>> list)
        Initialization.
        Parameters:
        list - the list to iterate on.
      • getPathIteratorFrom

        protected abstract PathIterator3ai<IE> getPathIteratorFrom​(Shape3ai<?,​?,​IE,​?,​?,​?> shape)
        Replies the path iterator of the shape.
        Parameters:
        shape - the shape.
        Returns:
        the path iterator.
      • isPolyline

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

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

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

        public boolean isPolygon()
        Description copied from interface: PathIterator3D
        Replies the path is composed only by one MOVE_TO, a sequence of LINE_TO or QUAD_TO or CURVE_TO, and a single CLOSE primitives.
        Specified by:
        isPolygon in interface PathIterator3D<IE extends PathElement3ai>
        Returns:
        true if the path does not contain curve primitives, false otherwise.