com.aspose.xps

Class XpsPathGeometry

  • All Implemented Interfaces:
    Iterable<XpsElement>


    public final class XpsPathGeometry
    extends XpsElement

    Class incapsulating PathGeometry property element features. This element contains a set of path figures specified either with the Figures attribute or with a child PathFigure element.

    • Method Detail

      • getFillRule

        public XpsFillRule getFillRule()

        Returns the value specifying how the intersecting areas of geometric shapes are combined to form a region.

        Returns:
        The value specifying how the intersecting areas of geometric shapes are combined to form a region.
      • setFillRule

        public void setFillRule(XpsFillRule value)

        Sets the value specifying how the intersecting areas of geometric shapes are combined to form a region.

        Parameters:
        value - The value specifying how the intersecting areas of geometric shapes are combined to form a region.
      • getTransform

        public XpsMatrix getTransform()

        Returns the affine transformation matrix establishing the local matrix transformation that is applied to all child and descendant elements of the path geometry before it is used for filling, clipping, or stroking.

        Returns:
        The affine transformation matrix.
      • setTransform

        public void setTransform(XpsMatrix value)

        Sets the affine transformation matrix establishing the local matrix transformation that is applied to all child and descendant elements of the path geometry before it is used for filling, clipping, or stroking.

        Parameters:
        value - The affine transformation matrix.
      • getPathFigures

        public XpsList<XpsPathFigure> getPathFigures()

        Returns the list of child path figures.

        Returns:
        The list of child path figures.
      • add

        public XpsPathFigure add(XpsPathFigure pathFigure)

        Adds a path figure to the list of child figures.

        Parameters:
        pathFigure - The path figure to be added.
        Returns:
        Added path figure.
      • insert

        public XpsPathFigure insert(int index,
                                    XpsPathFigure pathFigure)

        Inserts a path figure to the list of child figures at index position.

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

        public XpsPathFigure remove(XpsPathFigure pathFigure)

        Removes a path figure from the list of child figures.

        Parameters:
        pathFigure - The path figure to be removed.
        Returns:
        Removed path figure.
      • removeAt

        public XpsPathFigure removeAt(int index)

        Removes a path figure from the list of child figures at index position.

        Parameters:
        index - Position at which a path figure should be removed.
        Returns:
        Inserted path figure.
      • addSegment

        public XpsPathSegment addSegment(XpsPathSegment segment)

        Adds a path segment to the list of child segments of the last pah figure.

        Parameters:
        segment - The path segment to be added.
        Returns:
        Added path segment.
      • insertSegment

        public XpsPathSegment insertSegment(int index,
                                            XpsPathSegment segment)

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

        Parameters:
        index - Position at which a segment should be inserted.
        segment - A path segment to be inserted.
        Returns:
        Inserted path segment.
      • removeSegment

        public XpsPathSegment removeSegment(XpsPathSegment segment)

        Removes a path segment from the list of child segments of the last path figure.

        Parameters:
        segment - The path segment to be removed.
        Returns:
        Removed path segment.
      • removeSegmentAt

        public XpsPathSegment removeSegmentAt(int index)

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

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

        public XpsPathFigure getFigure(int i)

        Provides access to element's path figure list by index i.

        Parameters:
        i - Index of child path figure.
        Returns:
        Child XpsPathFigure element at i position.
      • deepClone

        public XpsPathGeometry deepClone()

        Clones this path geometry.

        Returns:
        Clone of this path geometry.