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.
Modifier and Type | Method and Description |
---|---|
XpsPathFigure |
add(XpsPathFigure pathFigure)
Adds a path figure to the list of child figures.
|
XpsPathSegment |
addSegment(XpsPathSegment segment)
Adds a path segment to the list of child segments of the last pah figure.
|
XpsPathGeometry |
deepClone()
Clones this path geometry.
|
XpsPathFigure |
getFigure(int i)
Provides access to element's path figure list by index
i . |
XpsFillRule |
getFillRule()
Returns the value specifying how the intersecting areas of geometric
shapes are combined to form a region.
|
XpsList<XpsPathFigure> |
getPathFigures()
Returns the list of child path figures.
|
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.
|
XpsPathFigure |
insert(int index,
XpsPathFigure pathFigure)
Inserts a path figure to the list of child figures at
index position. |
XpsPathSegment |
insertSegment(int index,
XpsPathSegment segment)
Inserts a path segment to the list of child segments of
the last path figure at
index position. |
XpsPathFigure |
remove(XpsPathFigure pathFigure)
Removes a path figure from the list of child figures.
|
XpsPathFigure |
removeAt(int index)
Removes a path figure from the list of child figures at
index position. |
XpsPathSegment |
removeSegment(XpsPathSegment segment)
Removes a path segment from the list of child segments of the last path figure.
|
XpsPathSegment |
removeSegmentAt(int index)
Removes a path segment from the list of child segments of
the last path figure at
index position. |
void |
setFillRule(XpsFillRule value)
Sets the value specifying how the intersecting areas of geometric
shapes are combined to form a region.
|
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.
|
get, iterator, size
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public XpsFillRule getFillRule()
Returns the value specifying how the intersecting areas of geometric shapes are combined to form a region.
public void setFillRule(XpsFillRule value)
Sets the value specifying how the intersecting areas of geometric shapes are combined to form a region.
value
- The value specifying how the intersecting areas of geometric
shapes are combined to form a region.
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.
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.
value
- The affine transformation matrix.public XpsList<XpsPathFigure> getPathFigures()
Returns the list of child path figures.
public XpsPathFigure add(XpsPathFigure pathFigure)
Adds a path figure to the list of child figures.
pathFigure
- The path figure to be added.public XpsPathFigure insert(int index, XpsPathFigure pathFigure)
Inserts a path figure to the list of child figures at index
position.
index
- Position at which a path figure should be inserted.pathFigure
- The path figure to be inserted.public XpsPathFigure remove(XpsPathFigure pathFigure)
Removes a path figure from the list of child figures.
pathFigure
- The path figure to be removed.public XpsPathFigure removeAt(int index)
Removes a path figure from the list of child figures at index
position.
index
- Position at which a path figure should be removed.public XpsPathSegment addSegment(XpsPathSegment segment)
Adds a path segment to the list of child segments of the last pah figure.
segment
- The path segment to be added.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.
index
- Position at which a segment should be inserted.segment
- A path segment to be inserted.public XpsPathSegment removeSegment(XpsPathSegment segment)
Removes a path segment from the list of child segments of the last path figure.
segment
- The path segment to be removed.public XpsPathSegment removeSegmentAt(int index)
Removes a path segment from the list of child segments of
the last path figure at index
position.
index
- Position at which a path segment should be removed.public XpsPathFigure getFigure(int i)
Provides access to element's path figure list by index i
.
i
- Index of child path figure.XpsPathFigure
element at i
position.public XpsPathGeometry deepClone()
Clones this path geometry.