aspose.pdf
Class Arc

java.lang.Object
  extended by aspose.pdf.Shape
      extended by aspose.pdf.Arc

public class Arc
extends Shape

Represents an arc Shape in a Graph.

Typical usages are the following:

[Java] Pdf pdf1 = new Pdf(); Section sec1 = pdf1.getSections().add(); Graph graph1 = new Graph(sec1,100,400); sec1.getParagraphs().add(graph1); Arc arc1 = new Arc(graph1,200,50,30,30,90); graph1.getShapes().add(arc1); arc1.getGraphInfo().setColor(new aspose.pdf.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 Summary
Arc()
          Constructor - initializes a new instance of the Arc class.
Arc(float xPosition, float yPosition, float radius, float alpha, float beta)
          Constructor - initializes a new instance of the Arc class.
Arc(Graph graph)
          Constructor - initializes a new instance of the Arc class.
Arc(Graph graph, float xPosition, float yPosition, float radius, float alpha, float beta)
          Constructor - initializes a new instance of the Arc class.
 
Method Summary
 float getAlpha()
          Gets a float value that indicates the beginning angle degree of the arc.
 float getBeta()
          Gets a float value that indicates the ending angle degree of the arc.
 float getPosX()
          Gets a float value that indicates the x-coordinate of the center of the arc.
 float getPosY()
          Gets a float value that indicates the y-coordinate of the center of the arc.
 float getRadius()
          Gets a float value that indicates the radius of the arc.
 void setAlpha(float value)
          Sets a float value that indicates the beginning angle degree of the arc.
 void setBeta(float value)
          Sets a float value that indicates the ending angle degree of the arc.
 void setPosX(float value)
          Sets a float value that indicates the x-coordinate of the center of the arc.
 void setPosY(float value)
          Sets a float value that indicates the y-coordinate of the center of the arc.
 void setRadius(float value)
          Sets a float value that indicates the radius of the arc.
 
Methods inherited from class aspose.pdf.Shape
getGraphInfo, getID, setGraphInfo, setID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Arc

public Arc()
Constructor - initializes a new instance of the Arc class.


Arc

public Arc(float xPosition,
           float yPosition,
           float radius,
           float alpha,
           float beta)
Constructor - initializes a new instance of the Arc class.

Parameters:
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.

Arc

public Arc(Graph graph)
Constructor - initializes a new instance of the Arc class.

Remarks: This constructor can inherit common property values from the specified Graph.

Parameters:
graph - The specified Graph object.

Arc

public Arc(Graph graph,
           float xPosition,
           float yPosition,
           float radius,
           float alpha,
           float beta)
Constructor - initializes a new instance of the Arc class.

Remarks: This constructor can inherit common property values from the specified Graph object.

Parameters:
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.
Method Detail

getPosX

public float getPosX()
Gets a float value that indicates the x-coordinate of the center of the arc.

Returns:
A float value.

setPosX

public void setPosX(float value)
Sets a float value that indicates the x-coordinate of the center of the arc.

Parameters:
value - A float value.

getPosY

public float getPosY()
Gets a float value that indicates the y-coordinate of the center of the arc.

Returns:
A float value.

setPosY

public void setPosY(float value)
Sets a float value that indicates the y-coordinate of the center of the arc.

Parameters:
value - A float value.

getRadius

public float getRadius()
Gets a float value that indicates the radius of the arc.

Returns:
A float value.

setRadius

public void setRadius(float value)
Sets a float value that indicates the radius of the arc.

Parameters:
value - A float value.

getAlpha

public float getAlpha()
Gets a float value that indicates the beginning angle degree of the arc.

Returns:
A float value.

setAlpha

public void setAlpha(float value)
Sets a float value that indicates the beginning angle degree of the arc.

Parameters:
value - A float value.

getBeta

public float getBeta()
Gets a float value that indicates the ending angle degree of the arc.

Returns:
A float value.

setBeta

public void setBeta(float value)
Sets a float value that indicates the ending angle degree of the arc.

Parameters:
value - A float value.