Package com.evopdf
Class EllipseElement
java.lang.Object
com.evopdf.PageElement
com.evopdf.PageGraphicElement
com.evopdf.EllipseElement
- Direct Known Subclasses:
CircleElement
This class represents an ellipse element that can be added to a PDF document
-
Constructor Summary
ConstructorsConstructorDescriptionEllipseElement(float x, float y, float xRadius, float yRadius) This constructor constructs an ellipse element at the given coordinates and having the given size -
Method Summary
Modifier and TypeMethodDescriptionvoidsetX(float x) Sets the X coordinate of the ellipse centervoidsetXRadius(float xRadius) Sets the horizontal radiusvoidsetY(float y) Sets the Y coordinate of the ellipse centervoidsetYRadius(float yRadius) Sets the vertical radiusfloatx()Gets the X coordinate of the ellipse centerfloatxRadius()Gets the horizontal radiusfloaty()Gets the Y coordinate of the ellipse centerfloatyRadius()Gets the vertical radiusMethods inherited from class com.evopdf.PageGraphicElement
backColor, blending, clipRectangle, foreColor, gradient, lineStyle, opacity, rotate, scale, setBackColor, setBlending, setClipRectangle, setForeColor, setGradient, setLineStyle, setOpacity, skew, translate
-
Constructor Details
-
EllipseElement
public EllipseElement(float x, float y, float xRadius, float yRadius) This constructor constructs an ellipse element at the given coordinates and having the given size- Parameters:
x- The X coordinate where the ellipse will be renderedy- The Y coordinate where the ellipse will be renderedxRadius- The X radius of the ellipseyRadius- The Y radius of the ellipse
-
-
Method Details
-
x
public float x()Gets the X coordinate of the ellipse center- Returns:
- the X coordinate of the ellipse center
-
setX
public void setX(float x) Sets the X coordinate of the ellipse center- Parameters:
x- the X coordinate of the ellipse center to set
-
y
public float y()Gets the Y coordinate of the ellipse center- Returns:
- the Y coordinate of the ellipse center
-
setY
public void setY(float y) Sets the Y coordinate of the ellipse center- Parameters:
y- the Y coordinate of the ellipse center to set
-
xRadius
public float xRadius()Gets the horizontal radius- Returns:
- the horizontal radius
-
setXRadius
public void setXRadius(float xRadius) Sets the horizontal radius- Parameters:
xRadius- the horizontal radius to set
-
yRadius
public float yRadius()Gets the vertical radius- Returns:
- the vertical radius
-
setYRadius
public void setYRadius(float yRadius) Sets the vertical radius- Parameters:
yRadius- the vertical radius to set
-