aspose.pdf
Class Circle

java.lang.Object
  extended by aspose.pdf.Shape
      extended by aspose.pdf.ClosedShape
          extended by aspose.pdf.Circle

public class Circle
extends ClosedShape

Represents a circle 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); Circle circle1 = new Circle(graph1,200,50,30); graph1.getShapes().add(circle1); circle1.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"> <Circle CenterPosition="200 50" Radius="30" Color="Red"></Circle> </Graph> </Section> </Pdf>


Constructor Summary
Circle()
          Constructor - initializes a new instance of the Circle class.
Circle(float xPosition, float yPosition, float radius)
          Initializes a new instance of the Circle class.
Circle(Graph graph)
          Initializes a new instance of the Circle class.
Circle(Graph graph, float xPosition, float yPosition, float radius)
          Initializes a new instance of the Circle class.
 
Method Summary
protected  java.lang.Object clone()
           
 float getPosX()
          Gets a float value that indicates the x-coordinate of the center of the circle.
 float getPosY()
          Gets a float value that indicates the y-coordinate of the center of the circle.
 float getRadius()
          Gets a float value that indicates the radius of the circle.
 void setPosX(float pos)
          Sets a float value that indicates the x-coordinate of the center of the circle.
 void setPosY(float pos)
          Sets a float value that indicates the y-coordinate of the center of the circle.
 void setRadius(float circleRadius)
          Sets a float value that indicates the radius of the circle.
 
Methods inherited from class aspose.pdf.Shape
getGraphInfo, getID, setGraphInfo, setID
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Circle

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


Circle

public Circle(float xPosition,
              float yPosition,
              float radius)
Initializes a new instance of the Circle class.

Parameters:
xPosition - The x-coordinate of the center of the circle.
yPosition - The y-coordinate of the center of the circle.
radius - The radius of the circle.

Circle

public Circle(Graph graph)
Initializes a new instance of the Circle class.

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

Parameters:
graph - The specified Graph object.

Circle

public Circle(Graph graph,
              float xPosition,
              float yPosition,
              float radius)
Initializes a new instance of the Circle 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 of the circle.
yPosition - The y-coordinate of the center of the circle.
radius - The radius of the circle.
Method Detail

getPosX

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

Returns:
X position.

setPosX

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

Parameters:
pos - X position.

getPosY

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

Returns:
Y position.

setPosY

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

Parameters:
pos - Y position.

getRadius

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

Returns:
A float value.

setRadius

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

Parameters:
circleRadius - Float value.

clone

protected java.lang.Object clone()
Overrides:
clone in class java.lang.Object