public abstract class TemplateItem extends Object
The inheritors of TemplateItem class are used in Template collection.
| Modifier | Constructor and Description |
|---|---|
protected |
TemplateItem(String name,
Integer pageIndex,
boolean useUpperCaseName)
Initializes a new instance of the
TemplateField class. |
protected |
TemplateItem(String name,
Integer pageIndex,
Double pageWidth,
boolean useUpperCaseName)
Initializes a new instance of the
TemplateField class. |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name of the template item.
|
Integer |
getPageIndex()
Gets the page index of the template item.
|
Double |
getPageWidth()
Gets the width of the page that was used to create the template item.
|
boolean |
getUseUpperCaseName()
Gets a value that indicates whether a
Name was converted to UPPER CASE. |
abstract TemplateItem |
scale(double factor)
Creates a copy of the current item with all coordinates scaled by the given factor.
|
protected TemplateItem(String name, Integer pageIndex, boolean useUpperCaseName)
TemplateField class.name - The field name.pageIndex - An integer value that represents the index of the page where the template item is located; null if the template item is located on any page.useUpperCaseName - The value that indicates whether a name is converted to UPPER CASE.protected TemplateItem(String name, Integer pageIndex, Double pageWidth, boolean useUpperCaseName)
TemplateField class.name - The field name.pageIndex - An integer value that represents the index of the page where the template item is located; null if the template item is located on any page.pageWidth - The width of the page that was used to create the template item.useUpperCaseName - The value that indicates whether a name is converted to UPPER CASE.public abstract TemplateItem scale(double factor)
factor - The scaling factor.TemplateItem with scaled coordinates.public String getName()
public Integer getPageIndex()
null if the template item is located on any page.public Double getPageWidth()
null if the page width is unknown.public boolean getUseUpperCaseName()
Name was converted to UPPER CASE.Name was converted to UPPER CASE.Copyright © 2026. All rights reserved.