TemplateBarcode
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.parser.templates.TemplateItem
public class TemplateBarcode extends TemplateItem
Provides the template barcode field.
| Constructor | Description |
|---|---|
| TemplateBarcode(Rectangle rectangle, String name) | Initializes a new instance of the TemplateBarcode class. |
| TemplateBarcode(Rectangle rectangle, String name, Integer pageIndex) | Initializes a new instance of the TemplateBarcode clas with the UPPER CASE name. |
| TemplateBarcode(Rectangle rectangle, String name, Integer pageIndex, Double pageWidth) | Initializes a new instance of the TemplateBarcode class with the UPPER CASE name. |
| TemplateBarcode(Rectangle rectangle, String name, Integer pageIndex, boolean useUpperCaseName) | Initializes a new instance of the TemplateBarcode class. |
| TemplateBarcode(Rectangle rectangle, String name, Integer pageIndex, Double pageWidth, boolean useUpperCaseName) | Initializes a new instance of the TemplateBarcode class. |
| Method | Description |
|---|---|
| getRectangle() | Gets the rectangular area that contains the template barcode field. |
| scale(double factor) |
public TemplateBarcode(Rectangle rectangle, String name)
Initializes a new instance of the TemplateBarcode class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| rectangle | Rectangle | The rectangular area that contains the template barcode field. |
| name | java.lang.String | The barcode field name. |
public TemplateBarcode(Rectangle rectangle, String name, Integer pageIndex)
Initializes a new instance of the TemplateBarcode clas with the UPPER CASE name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| rectangle | Rectangle | The rectangular area that contains the template barcode field. |
| name | java.lang.String | The barcode field name. |
| pageIndex | java.lang.Integer | 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. |
public TemplateBarcode(Rectangle rectangle, String name, Integer pageIndex, Double pageWidth)
Initializes a new instance of the TemplateBarcode class with the UPPER CASE name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| rectangle | Rectangle | The rectangular area that contains the template barcode field. |
| name | java.lang.String | The barcode field name. |
| pageIndex | java.lang.Integer | 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 | java.lang.Double | The width of the page that was used to create the template item. |
public TemplateBarcode(Rectangle rectangle, String name, Integer pageIndex, boolean useUpperCaseName)
Initializes a new instance of the TemplateBarcode class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| rectangle | Rectangle | The rectangular area that contains the template barcode field. |
| name | java.lang.String | The barcode field name. |
| pageIndex | java.lang.Integer | 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 | boolean | The value that indicates whether a name is converted to UPPER CASE. |
TemplateBarcode(Rectangle rectangle, String name, Integer pageIndex, Double pageWidth, boolean useUpperCaseName)
public TemplateBarcode(Rectangle rectangle, String name, Integer pageIndex, Double pageWidth, boolean useUpperCaseName)
Initializes a new instance of the TemplateBarcode class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| rectangle | Rectangle | The rectangular area that contains the template barcode field. |
| name | java.lang.String | The barcode field name. |
| pageIndex | java.lang.Integer | 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 | java.lang.Double | The width of the page that was used to create the template item. |
| useUpperCaseName | boolean | The value that indicates whether a name is converted to UPPER CASE. |
public Rectangle getRectangle()
Gets the rectangular area that contains the template barcode field.
Returns: Rectangle - An instance of Rectangle class that represents the rectangular area that contains the template barcode field.
public TemplateItem scale(double factor)
Creates a copy of the current item with all coordinates scaled by the given factor.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| factor | double |
Returns: TemplateItem
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.