public class Arc extends NonClosedShape
Represents an arc Shape
in a Graph.
[C#] Pdf pdf1 = new Pdf(); Section sec1 = pdf1.Sections.Add(); Graph graph1 = new Graph(sec1,100,400); sec1.Paragraphs.Add(graph1); Arc arc1 = new Arc(graph1,200,50,30,30,90); graph1.Shapes.Add(arc1); arc1.GraphInfo.Color = new Aspose.Pdf.Generator.Color("Red"); pdf1.Save(...); [Visual Basic] Dim pdf1 As Pdf = New Pdf() Dim sec1 As Section = pdf1.Sections.Add() Dim graph1 As Graph = New Graph(sec1, 100, 400) sec1.Paragraphs.Add(graph1) Dim arc1 As Arc = New Arc(graph1, 200, 50, 30, 30, 90) graph1.Shapes.Add(arc1) arc1.GraphInfo.Color = New Aspose.Pdf.Generator.Color("Red") pdf1.Save(...) [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf"> <Section> <Graph Height="100" Width="400"> <Arc CenterPosition="200 50" Radius="30" Alpha="30" Beta="90" Color="Red"> </Arc> </Graph> </Section> </Pdf>
Constructor and Description |
---|
Arc()
Initializes a new instance of the
Arc class. |
Arc(float xPosition,
float yPosition,
float radius,
float alpha,
float beta)
Initializes a new instance of the
Arc class. |
Arc(Graph graph)
Initializes a new instance of the
Arc class. |
Arc(Graph graph,
float xPosition,
float yPosition,
float radius,
float alpha,
float beta)
Initializes a new instance of the
Arc class. |
Modifier and Type | Method and Description |
---|---|
float |
getAlpha()
Gets or sets a float value that indicates the beginning angle degree
of the arc.
|
float |
getBeta()
Gets or sets a float value that indicates the ending angle degree of
the arc.
|
float |
getPosX()
Gets or sets a float value that indicates the x-coordinate of the
center of the arc.
|
float |
getPosY()
Gets or sets a float value that indicates the y-coordinate of the
center of the arc.
|
float |
getRadius()
Gets or sets a float value that indicates the radius of the arc.
|
void |
setAlpha(float value) |
void |
setBeta(float value) |
void |
setPosX(float value) |
void |
setPosY(float value) |
void |
setRadius(float value) |
getBlendInfo, getClipShapes, getEndFillArea, getGraph, getGraphicState, getGraphInfo, getID, getOpacity, getStrokeOpacity, isBoundingBoxRelative, isBoundingBoxRelative, setBlendInfo, setClipShapes, setEndFillArea, setGraph, setGraphInfo, setID, setOpacity, setStrokeOpacity
public Arc()
Initializes a new instance of the Arc
class.
public Arc(float xPosition, float yPosition, float radius, float alpha, float beta)
Initializes a new instance of the Arc
class.
xPosition
- The x-coordinate of the center point of the arc.yPosition
- The y-coordinate of the center point of the arc.radius
- The radius value of the arc.alpha
- The beginning angle value of the arc.beta
- The end angle value of the arc.public Arc(Graph graph)
Initializes a new instance of the Arc
class.
graph
- The specified Graph
object. Graph
object. public Arc(Graph graph, float xPosition, float yPosition, float radius, float alpha, float beta)
Initializes a new instance of the Arc
class.
graph
- The specified Graph
object.xPosition
- The x-coordinate of the center point of the arc.yPosition
- The y-coordinate of the center point of the arc.radius
- The radius value of the arc.alpha
- The beginning angle value of the arc.beta
- The end angle value of the arc. Graph
object.
public float getPosX()
Gets or sets a float value that indicates the x-coordinate of the center of the arc.
public void setPosX(float value)
public float getPosY()
Gets or sets a float value that indicates the y-coordinate of the center of the arc.
public void setPosY(float value)
public float getRadius()
Gets or sets a float value that indicates the radius of the arc.
public void setRadius(float value)
public float getAlpha()
Gets or sets a float value that indicates the beginning angle degree of the arc.
public void setAlpha(float value)
public float getBeta()
Gets or sets a float value that indicates the ending angle degree of the arc.
public void setBeta(float value)
Copyright © 2016 Aspose. All Rights Reserved.