XpsPathGeometry

Inheritance: java.lang.Object, com.aspose.xps.XpsObject, com.aspose.xps.XpsArray

All Implemented Interfaces: com.aspose.xps.ITransformableProperty

public final class XpsPathGeometry extends XpsArray<XpsPathFigure> implements ITransformableProperty

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.

Methods

MethodDescription
getFillRule()Returns the value specifying how the intersecting areas of geometric shapes are combined to form a region.
setFillRule(XpsFillRule value)Sets the value specifying how the intersecting areas of geometric shapes are combined to form a region.
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.
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.
getPathFigures()Returns the list of child path figures.
addSegment(XpsPathSegment segment)Adds a path segment to the list of child segments of the last pah figure.
insertSegment(int index, XpsPathSegment segment)Inserts a path segment to the list of child segments of the last path figure at index position.
removeSegment(XpsPathSegment segment)Removes a path segment from the list of child segments of the last path figure.
removeSegmentAt(int index)Removes a path segment from the list of child segments of the last path figure at index position.
deepClone()Clones this path geometry.

getFillRule()

public XpsFillRule getFillRule()

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

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

setFillRule(XpsFillRule value)

public void setFillRule(XpsFillRule value)

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

Parameters:

ParameterTypeDescription
valueXpsFillRuleThe 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: XpsMatrix - The affine transformation matrix.

setTransform(XpsMatrix value)

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:

ParameterTypeDescription
valueXpsMatrixThe affine transformation matrix.

getPathFigures()

public List<XpsPathFigure> getPathFigures()

Returns the list of child path figures.

Returns: java.util.List<com.aspose.xps.XpsPathFigure> - The list of child path figures.

addSegment(XpsPathSegment segment)

public XpsPathSegment addSegment(XpsPathSegment segment)

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

Parameters:

ParameterTypeDescription
segmentXpsPathSegmentThe path segment to be added.

Returns: XpsPathSegment - Added path segment.

insertSegment(int index, XpsPathSegment segment)

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:

ParameterTypeDescription
indexintPosition at which a segment should be inserted.
segmentXpsPathSegmentA path segment to be inserted.

Returns: XpsPathSegment - Inserted path segment.

removeSegment(XpsPathSegment segment)

public XpsPathSegment removeSegment(XpsPathSegment segment)

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

Parameters:

ParameterTypeDescription
segmentXpsPathSegmentThe path segment to be removed.

Returns: XpsPathSegment - Removed path segment.

removeSegmentAt(int index)

public XpsPathSegment removeSegmentAt(int index)

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

Parameters:

ParameterTypeDescription
indexintPosition at which a path segment should be removed.

Returns: XpsPathSegment - Removed path segment.

deepClone()

public XpsPathGeometry deepClone()

Clones this path geometry.

Returns: XpsPathGeometry - Clone of this path geometry.