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 TypeMethodDescriptionbooleanGets the boolean value specifying whether the element should be added to even pages or not.booleanGets the boolean value specifying whether the element should be added to odd pages or not.Gets placement of the page element on the page.floatGets the X coordinate of the page element.floatGets the Y coordinate of the page element.voidsetEvenPages(boolean value)Sets the boolean value specifying whether the element should be added to even pages or not.voidsetOddPages(boolean value)Sets the boolean value specifying whether the element should be added to odd pages or not.voidsetPlacement(ElementPlacement value)Sets placement of the page element on the page.voidsetXOffset(float value)Sets the X coordinate of the page element.voidsetYOffset(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.
-