aspose.pdf
Class Ellipse

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

public class Ellipse
extends Shape

Represents a Ellipse Shape in a Pdf document.

Typical usages are the following:

[Java] Pdf pdf1 = new Pdf(); Section sec1 = pdf1.getSections().add(); Graph graph1 = new Graph(sec1,400,100); sec1.getParagraphs().add(graph1); aspose.pdf.Ellipse ellipse1 = new aspose.pdf.Ellipse(graph1,50,10,100,50); graph1.getShapes().add(ellipse1); pdf1.save("d:/test/test.pdf"); [XML] <Pdf xmlns="Aspose.Pdf"> <Section> <Graph Width="400" Height="100"> <Ellipse Position="50 10 100 50" /> </Graph> </Section> </Pdf>


Constructor Summary
Ellipse()
          Constructor - initializes a new instance of the Ellipse class.
Ellipse(float left, float bottom, float width, float height)
          Constructor - initializes a new instance of the Ellipse class.
Ellipse(Graph graph)
          Constructor - initializes a new instance of the Ellipse class.
Ellipse(Graph graph, float left, float bottom, float width, float height)
          Constructor - initializes a new instance of the Ellipse class.
 
Method Summary
 float getBottom()
          Gets a float value that indicates the bottom position of the ellipse.
 float getHeight()
          Gets a float value that indicates the height of the ellipse.
 float getLeft()
          Gets a float value that indicates the left position of the ellipse.
 float getWidth()
          Gets a float value that indicates the width of the ellipse.
 void setBottom(float rectBottom)
          Sets a float value that indicates the bottom position of the ellipse.
 void setHeight(float rectHeight)
          Sets a float value that indicates the height of the ellipse.
 void setLeft(float rectLeft)
          Sets a float value that indicates the left position of the ellipse.
 void setWidth(float rectWidth)
          Sets a float value that indicates the width of the ellipse.
 
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

Ellipse

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


Ellipse

public Ellipse(float left,
               float bottom,
               float width,
               float height)
Constructor - initializes a new instance of the Ellipse class.

Parameters:
left - The left position of the ellipse.
bottom - The bottom position of the ellipse.
height - The height of the ellipse.
width - The width of the ellipse.

Ellipse

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

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

Parameters:
graph - The specified Graph object.

Ellipse

public Ellipse(Graph graph,
               float left,
               float bottom,
               float width,
               float height)
Constructor - initializes a new instance of the Ellipse class.

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

Parameters:
graph - The specified Graph object.
left - The left position of the ellipse.
bottom - The bottom position of the ellipse.
height - The height of the ellipse.
width - The width of the ellipse.
Method Detail

getLeft

public float getLeft()
Gets a float value that indicates the left position of the ellipse.

Returns:
A float value.

setLeft

public void setLeft(float rectLeft)
Sets a float value that indicates the left position of the ellipse.

Parameters:
rectLeft - A float value.

getBottom

public float getBottom()
Gets a float value that indicates the bottom position of the ellipse.

Returns:
A float value.

setBottom

public void setBottom(float rectBottom)
Sets a float value that indicates the bottom position of the ellipse.

Parameters:
rectBottom - A Float value.

getWidth

public float getWidth()
Gets a float value that indicates the width of the ellipse.

Returns:
A float value.

setWidth

public void setWidth(float rectWidth)
Sets a float value that indicates the width of the ellipse.

Parameters:
rectWidth - A float value.

getHeight

public float getHeight()
Gets a float value that indicates the height of the ellipse.

Returns:
A float value.

setHeight

public void setHeight(float rectHeight)
Sets a float value that indicates the height of the ellipse.

Parameters:
rectHeight - A float value.