DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class EvenOddTemplate

java.lang.Object
  extended by com.cete.dynamicpdf.Template
      extended by com.cete.dynamicpdf.EvenOddTemplate

public class EvenOddTemplate
extends Template

This class can be used to define a template that can contain separate information to go on even and odd pages. See the Templates topic for more on Templates.

Licensing:
This class is a DynamicPDF Generator Community Edition feature.

View Example


Constructor Summary
EvenOddTemplate()
          Initializes a new instance of the Template class.
 
Method Summary
 void draw(PageWriter writer)
          Draws the template's page elements to the given PageWriter object.
 Group getEvenElements()
          Gets the page elements that will be applied by the template to even pages.
 Group getOddElements()
          Gets the page elements that will be applied by the template to odd pages.
 boolean hasPageElements(int pageNumber)
          Returns a value indicating if the template has page elements for the given page.
 
Methods inherited from class com.cete.dynamicpdf.Template
getElements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvenOddTemplate

public EvenOddTemplate()
Initializes a new instance of the Template class.

See Also:
Template
Method Detail

getEvenElements

public Group getEvenElements()
Gets the page elements that will be applied by the template to even pages.

Returns:
the page elements that will be applied by the template to even pages.

getOddElements

public Group getOddElements()
Gets the page elements that will be applied by the template to odd pages.

Returns:
the page elements that will be applied by the template to odd pages.

draw

public void draw(PageWriter writer)
Draws the template's page elements to the given PageWriter object.

Overrides:
draw in class Template
Parameters:
writer - PageWriter object to receive the template's output.
See Also:
PageWriter

hasPageElements

public boolean hasPageElements(int pageNumber)
Returns a value indicating if the template has page elements for the given page.

Parameters:
pageNumber - The page number to check.
Returns:
A Boolean value indicating if there are page elements.

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.04 for Java generated on September 25, 2019
© Copyright 2019, ceTe Software