|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaspose.pdf.Shape
aspose.pdf.ClosedShape
aspose.pdf.Path
public class Path
Path is a closed shape (contour) that consists of several unclosed Shapes such as Lines, Bezier curves, Arc. Other shapes are ignored for writing.
Typical usages are the following:
Constructor Summary | |
---|---|
Path()
Initializes a new instance of the Path class. |
|
Path(Graph graph)
Initializes a new instance of the Path class. |
Method Summary | |
---|---|
void |
close()
Closes this path by connecting the first point of the first unclosed shape with the last point of the last unclosed shape with a line segment. |
float[] |
getBeginPosition()
Returns the first point of the first unclosed shape. |
float[] |
getEndPosition()
Returns the last point of the last unclosed shape. |
java.util.List<UnclosedShape> |
getShapes()
Returns a list of unclosed shapes. |
boolean |
isClosed()
Checks whether this Path object is closed, that is the first point of the first unclosed shape coincides with the last point of the last unclosed shape. |
void |
setShapes(java.util.List<UnclosedShape> shapes)
Set a list of unclosed shapes. |
Methods inherited from class aspose.pdf.Shape |
---|
getGraphInfo, getID, setGraphInfo, setID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Path()
Path
class.
public Path(Graph graph)
Path
class.
graph
- The specified Graph
object.
Remarks: This constructor can inherit common property values from
the specified Graph
object.
Method Detail |
---|
public java.util.List<UnclosedShape> getShapes()
public void setShapes(java.util.List<UnclosedShape> shapes)
shapes
- public boolean isClosed()
public float[] getBeginPosition()
public float[] getEndPosition()
public void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |