com.aspose.xps

Class XpsPathFigure

  • All Implemented Interfaces:
    Iterable<XpsElement>


    public class XpsPathFigure
    extends XpsElement

    Class incapsulating PathFigure element features. This element is composed of a set of one or more line or curve segments.

    • Method Detail

      • getSegments

        public XpsList<XpsPathSegment> getSegments()

        Return the list of child path segments.

        Returns:
        The list of child path segments.
      • isClosed

        public boolean isClosed()

        Returns the value indicating whether the path figure is closed.

        Returns:
        The value indicating whether the path figure is closed.
      • setClosed

        public void setClosed(boolean value)

        Sets the value indicating whether the path figure is closed.

        Parameters:
        value - The value indicating whether the path figure is closed.
      • getStartPoint

        public Point2D getStartPoint()

        Returns the starting point for the first segment of the path figure.

        Returns:
        The starting point for the first segment of the path figure.
      • setStartPoint

        public void setStartPoint(Point2D value)

        Sets the starting point for the first segment of the path figure.

        Parameters:
        value - The starting point for the first segment of the path figure.
      • isFilled

        public boolean isFilled()

        Returns the value indicating whether the path figure is used in computing the area of the containing path geometry.

        Returns:
        The value indicating whether the path figure is used in computing the area of the containing path geometry.
      • setFilled

        public void setFilled(boolean value)

        Sets the value indicating whether the path figure is used in computing the area of the containing path geometry.

        Parameters:
        value - The value indicating whether the path figure is used in computing the area of the containing path geometry.
      • add

        public XpsPathSegment add(XpsPathSegment segment)

        Adds a path segment to the list of child segments.

        Parameters:
        segment - A path segment to be added.
        Returns:
        Added path segment.
      • insert

        public XpsPathSegment insert(int index,
                                     XpsPathSegment segment)

        Inserts a path segment to the list of child segments at index position.

        Parameters:
        index - Position at which a segment should be added.
        segment - The path segment to be inserted.
        Returns:
        Inserted path segment.
      • remove

        public XpsPathSegment remove(XpsPathSegment segment)

        Removes a path segment from the list of child segments.

        Parameters:
        segment - A path segment to be removed.
        Returns:
        Removed path segment.
      • removeAt

        public XpsPathSegment removeAt(int index)

        Removes a path segment from the list of child segments at index position.

        Parameters:
        index - Position at which a path segment should be removed.
        Returns:
        Removed path segment.
      • getSegment

        public XpsPathSegment getSegment(int i)

        Provides access to path figures's list of child path segments by index i.

        Parameters:
        i - Index of child path segment.
        Returns:
        Child path segment at i position.
      • deepClone

        public XpsPathFigure deepClone()

        Clones this path figure.

        Returns:
        Clone of this path figure.