Package com.winnovative_software
Class EllipseElement
java.lang.Object
com.winnovative_software.PageElement
com.winnovative_software.PageGraphicElement
com.winnovative_software.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 TypeMethodDescriptionvoid
setX
(float x) Sets the X coordinate of the ellipse centervoid
setXRadius
(float xRadius) Sets the horizontal radiusvoid
setY
(float y) Sets the Y coordinate of the ellipse centervoid
setYRadius
(float yRadius) Sets the vertical radiusfloat
x()
Gets the X coordinate of the ellipse centerfloat
xRadius()
Gets the horizontal radiusfloat
y()
Gets the Y coordinate of the ellipse centerfloat
yRadius()
Gets the vertical radiusMethods inherited from class com.winnovative_software.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
-