public class PathArea extends ClosedShape
<p>Path is a {@code ClosedShape} (contour) that consists of several non-closed shapes ({@code NonClosedShape}) such as Lines, Bezier curves, Arc.
Other shapes are ignored for writing.</p>
<p>Typical usages are the following:</p>
<xmp>
[C#]
Pdf pdf1 = new Pdf();
Section sec = pdf1.Sections.Add();
Color color = new Aspose.Pdf.Generator.Color("Red");
Graph graph = new Graph(100,400);
sec.Paragraphs.Add(graph);
PathArea path = new PathArea();
graph.Shapes.Add(path);
path.GraphInfo.FillColor = color;
path.GraphInfo.IsFilled = true;
Line line = new Line(new float [] {200, 80, 200, 100});
path.Shapes.Add(line); Arc arc = new Arc(200, 50, 50, 90, 270);
path.Shapes.add(arc); float [] curPos = arc.getEndPosition(); line = new
Line(new float [] {curPos[0], curPos[1], 200, 20}); path.Shapes.Add(line);
arc = new Arc(200, 50, 30, 270, 90); path.Shapes.Add(arc); pdf1.save(....);
</xmp>
Represents a path Shape
in a Graph.
Modifier and Type | Field and Description |
---|---|
com.aspose.ms.System.Collections.Hashtable |
ShapeArr |
Constructor and Description |
---|
PathArea()
Initializes a new instance of the
PathArea class. |
PathArea(Graph graph)
Initializes a new instance of the
PathArea class. |
PathArea(Graph graph,
Shape[] shapeArr)
Initializes a new instance of the
PathArea class. |
PathArea(Shape[] shapeArr)
Initializes a new instance of the
PathArea class. |
Modifier and Type | Method and Description |
---|---|
com.aspose.ms.System.Collections.Hashtable |
getShapes() |
getBlendInfo, getClipShapes, getEndFillArea, getGraph, getGraphicState, getGraphInfo, getID, getOpacity, getStrokeOpacity, isBoundingBoxRelative, isBoundingBoxRelative, setBlendInfo, setClipShapes, setEndFillArea, setGraph, setGraphInfo, setID, setOpacity, setStrokeOpacity
public PathArea()
Initializes a new instance of the PathArea
class.
public PathArea(Shape[] shapeArr)
Initializes a new instance of the PathArea
class.
shapeArr
- The shape array contains path segments set.public PathArea(Graph graph)
Initializes a new instance of the PathArea
class.
graph
- The graph object. Graph
object. Copyright © 2016 Aspose. All Rights Reserved.