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.
Modifier and Type | Method and Description |
---|---|
XpsPathSegment |
add(XpsPathSegment segment)
Adds a path segment to the list of child segments.
|
XpsPathFigure |
deepClone()
Clones this path figure.
|
XpsPathSegment |
getSegment(int i)
Provides access to path figures's list of child path segments by index
i . |
XpsList<XpsPathSegment> |
getSegments()
Return the list of child path segments.
|
Point2D |
getStartPoint()
Returns the starting point for the first segment of the path figure.
|
XpsPathSegment |
insert(int index,
XpsPathSegment segment)
Inserts a path segment to the list of child segments at
index position. |
boolean |
isClosed()
Returns the value indicating whether the path figure is closed.
|
boolean |
isFilled()
Returns the value indicating whether the path figure is used in computing
the area of the containing path geometry.
|
XpsPathSegment |
remove(XpsPathSegment segment)
Removes a path segment from the list of child segments.
|
XpsPathSegment |
removeAt(int index)
Removes a path segment from the list of child segments at
index position. |
void |
setClosed(boolean value)
Sets the value indicating whether the path figure is closed.
|
void |
setFilled(boolean value)
Sets the value indicating whether the path figure is used in computing
the area of the containing path geometry.
|
void |
setStartPoint(Point2D value)
Sets the starting point for the first segment of the path figure.
|
get, iterator, size
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public XpsList<XpsPathSegment> getSegments()
Return the list of child path segments.
public boolean isClosed()
Returns the value indicating whether the path figure is closed.
public void setClosed(boolean value)
Sets the value indicating whether the path figure is closed.
value
- The value indicating whether the path figure is closed.public Point2D getStartPoint()
Returns the starting point for the first segment of the path figure.
public void setStartPoint(Point2D value)
Sets the starting point for the first segment of the path figure.
value
- The starting point for the first segment of the path figure.public boolean isFilled()
Returns the value indicating whether the path figure is used in computing the area of the containing path geometry.
public void setFilled(boolean value)
Sets the value indicating whether the path figure is used in computing the area of the containing path geometry.
value
- The value indicating whether the path figure is used in computing
the area of the containing path geometry.public XpsPathSegment add(XpsPathSegment segment)
Adds a path segment to the list of child segments.
segment
- A path segment to be added.public XpsPathSegment insert(int index, XpsPathSegment segment)
Inserts a path segment to the list of child segments at index
position.
index
- Position at which a segment should be added.segment
- The path segment to be inserted.public XpsPathSegment remove(XpsPathSegment segment)
Removes a path segment from the list of child segments.
segment
- A path segment to be removed.public XpsPathSegment removeAt(int index)
Removes a path segment from the list of child segments at index
position.
index
- Position at which a path segment should be removed.public XpsPathSegment getSegment(int i)
Provides access to path figures's list of child path segments by index i
.
i
- Index of child path segment.i
position.public XpsPathFigure deepClone()
Clones this path figure.
Copyright © 2020 Aspose. All Rights Reserved.