Package com.dynamicpdf.api.elements
Class Element
java.lang.Object
com.dynamicpdf.api.elements.Element
- Direct Known Subclasses:
BarcodeElement
,ImageElement
,LineElement
,PageNumberingElement
,RectangleElement
,TextElement
Base class from which all page elements are derived.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the boolean value specifying whether the element should be added to even pages or not.boolean
Gets the boolean value specifying whether the element should be added to odd pages or not.Gets placement of the page element on the page.float
Gets the X coordinate of the page element.float
Gets the Y coordinate of the page element.void
setEvenPages(boolean value)
Sets the boolean value specifying whether the element should be added to even pages or not.void
setOddPages(boolean value)
Sets the boolean value specifying whether the element should be added to odd pages or not.void
setPlacement(ElementPlacement value)
Sets placement of the page element on the page.void
setXOffset(float value)
Sets the X coordinate of the page element.void
setYOffset(float value)
Sets the Y coordinate of the page element.
-
Method Details
-
getResource
-
getTextFont
-
getPlacement
Gets placement of the page element on the page.- Returns:
- Placement of the page element on the page.
-
setPlacement
Sets placement of the page element on the page.- Parameters:
value
- Placement of the page element on the page.
-
getXOffset
public float getXOffset()Gets the X coordinate of the page element.- Returns:
- The X coordinate of the page element.
-
setXOffset
public void setXOffset(float value)Sets the X coordinate of the page element.- Parameters:
value
- The X coordinate of the page element.
-
getYOffset
public float getYOffset()Gets the Y coordinate of the page element.- Returns:
- The Y coordinate of the page element.
-
setYOffset
public void setYOffset(float value)Sets the Y coordinate of the page element.- Parameters:
value
- The Y coordinate of the page element.
-
getEvenPages
public boolean getEvenPages()Gets the boolean value specifying whether the element should be added to even pages or not.- Returns:
- The boolean value specifying whether the element should be added to even pages or not.
-
setEvenPages
public void setEvenPages(boolean value)Sets the boolean value specifying whether the element should be added to even pages or not.- Parameters:
value
- The boolean value specifying whether the element should be added to even pages or not.
-
getOddPages
public boolean getOddPages()Gets the boolean value specifying whether the element should be added to odd pages or not.- Returns:
- The boolean value specifying whether the element should be added to odd pages or not.
-
setOddPages
public void setOddPages(boolean value)Sets the boolean value specifying whether the element should be added to odd pages or not.- Parameters:
value
- The boolean value specifying whether the element should be added to odd pages or not.
-