TemplateBarcode

Inheritance: java.lang.Object, com.groupdocs.parser.templates.TemplateItem

public class TemplateBarcode extends TemplateItem

Provides the template barcode field.

Constructors

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.

Methods

Method Description
getRectangle() Gets the rectangular area that contains the template barcode field.
scale(double factor)

TemplateBarcode(Rectangle rectangle, String name)

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.

TemplateBarcode(Rectangle rectangle, String name, Integer pageIndex)

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.

TemplateBarcode(Rectangle rectangle, String name, Integer pageIndex, Double pageWidth)

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.

TemplateBarcode(Rectangle rectangle, String name, Integer pageIndex, boolean useUpperCaseName)

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.

getRectangle()

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.

scale(double factor)

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