public class Circle extends ClosedShape
Represents a circle 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); Circle circle1 = new Circle(graph1,200,50,30); graph1.Shapes.Add(circle1); circle1.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 circle1 As Circle = New Circle(graph1, 200, 50, 30) graph1.Shapes.Add(circle1) circle1.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"> <Circle CenterPosition="200 50" Radius="30" Color="Red"></Circle> </Graph> </Section> </Pdf>
Constructor and Description |
---|
Circle()
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. |
Modifier and Type | Method and Description |
---|---|
float |
getPosX()
Gets or sets a float value that indicates the x-coordinate of the
center of the circle.
|
float |
getPosY()
Gets or sets a float value that indicates the y-coordinate of the
center of the circle.
|
float |
getRadius()
Gets or sets a float value that indicates the radius of the circle.
|
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 Circle()
Initializes a new instance of the Circle
class.
public Circle(float xPosition, float yPosition, float radius)
Initializes a new instance of the Circle
class.
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.public Circle(Graph graph)
Initializes a new instance of the Circle
class.
graph
- The specified Graph
object. Graph
object. public Circle(Graph graph, float xPosition, float yPosition, float radius)
Initializes a new instance of the Circle
class.
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. Graph
object.
public float getPosX()
Gets or sets a float value that indicates the x-coordinate of the center of the circle.
public void setPosX(float value)
public float getPosY()
Gets or sets a float value that indicates the y-coordinate of the center of the circle.
public void setPosY(float value)
public float getRadius()
Gets or sets a float value that indicates the radius of the circle.
public void setRadius(float value)
Copyright © 2016 Aspose. All Rights Reserved.