public class PathFigure extends Object
The path figure. A PathFigure element is composed of a set of one or more line or curve segments. The segment elements define the shape of the path figure. The initial point of the first segment element is specified as the StartPoint attribute of the path figure. The last point of each segment element is the first point of the following segment element.
| Constructor and Description |
|---|
PathFigure()
Initializes a new instance of the
PathFigure class. |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getItems()
Gets or sets the segment elements.
|
String |
getStartPoint()
Gets or sets the start point.
|
boolean |
isClosed()
Gets or sets a value indicating whether is closed.
|
boolean |
isFilled()
Gets or sets a value indicating whether is filled.
|
void |
setClosed(boolean value)
Gets or sets a value indicating whether is closed.
|
void |
setFilled(boolean value)
Gets or sets a value indicating whether is filled.
|
void |
setItems(Object[] value)
Gets or sets the segment elements.
|
void |
setStartPoint(String value)
Gets or sets the start point.
|
public PathFigure()
Initializes a new instance of the PathFigure class.
public final Object[] getItems()
Gets or sets the segment elements. Segment elements are: • ArcSegment. • PolyBezierSegment. • PolyLineSegment. • PolyQuadraticBezierSegment.
public final void setItems(Object[] value)
Gets or sets the segment elements. Segment elements are: • ArcSegment. • PolyBezierSegment. • PolyLineSegment. • PolyQuadraticBezierSegment.
public final boolean isClosed()
Gets or sets a value indicating whether is closed. Specifies whether the path is closed. If set to true, the stroke is drawn "closed", that is, the last point in the last segment of the path figure is connected with the point specified in the StartPoint attribute, otherwise the stroke is drawn "open", and the last point is not connected to the start point. Only applicable if the path figure is used in a Path element that specifies a stroke.
public final void setClosed(boolean value)
Gets or sets a value indicating whether is closed. Specifies whether the path is closed. If set to true, the stroke is drawn "closed", that is, the last point in the last segment of the path figure is connected with the point specified in the StartPoint attribute, otherwise the stroke is drawn "open", and the last point is not connected to the start point. Only applicable if the path figure is used in a Path element that specifies a stroke.
public final String getStartPoint()
Gets or sets the start point. Specifies the starting point for the first segment of the path figure.
public final void setStartPoint(String value)
Gets or sets the start point. Specifies the starting point for the first segment of the path figure.
public final boolean isFilled()
Gets or sets a value indicating whether is filled. Specifies whether the path figure is used in computing the area of the containing path geometry. Can be true or false. When set to false, the path figure is considered only for stroking.
public final void setFilled(boolean value)
Gets or sets a value indicating whether is filled. Specifies whether the path figure is used in computing the area of the containing path geometry. Can be true or false. When set to false, the path figure is considered only for stroking.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.