Class PDFInsertObject
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.PDF.PDFInsertObject
-
-
Constructor Summary
Constructors Constructor Description PDFInsertObject(java.lang.Integer x, java.lang.Integer y, java.lang.Integer pageNumber)
Represents an object to insert in a PDF.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.String
getIdentifier()
abstract com.google.gson.JsonObject
getJson()
java.lang.Integer
getPageNumber()
java.lang.Integer
getX()
java.lang.Integer
getY()
void
setPageNumber(java.lang.Integer pageNumber)
void
setX(java.lang.Integer x)
void
setY(java.lang.Integer y)
-
-
-
Constructor Detail
-
PDFInsertObject
public PDFInsertObject(java.lang.Integer x, java.lang.Integer y, java.lang.Integer pageNumber)
Represents an object to insert in a PDF.- Parameters:
x
- X-coordinate of the position of the object in the template starting from bottom left.y
- Y-coordinate of the position of the object in the template starting from bottom left.pageNumber
- Page number of the page where the object should be inserted. -1 if the object should be displayed on all pages.
-
-
Method Detail
-
getX
public java.lang.Integer getX()
- Returns:
- X-coordinate of the position of the object in the template starting from bottom left.
-
setX
public void setX(java.lang.Integer x)
- Parameters:
x
- X-coordinate of the position of the object in the template starting from bottom left.
-
getY
public java.lang.Integer getY()
- Returns:
- Y-coordinate of the position of the object in the template starting from bottom left.
-
setY
public void setY(java.lang.Integer y)
- Parameters:
y
- Y-coordinate of the position of the object in the template starting from bottom left.
-
getPageNumber
public java.lang.Integer getPageNumber()
- Returns:
- Page number of the page where the object should be inserted. -1 if the text should be displayed on all pages.
-
setPageNumber
public void setPageNumber(java.lang.Integer pageNumber)
- Parameters:
pageNumber
- Page number of the page where the object should be inserted. -1 if the text should be displayed on all pages.
-
getJson
public abstract com.google.gson.JsonObject getJson()
- Returns:
- JSONObject with the tags for this element for the Cloud Office Print server.
-
getIdentifier
public abstract java.lang.String getIdentifier()
- Returns:
- Identifier for the JSON.
-
-