Package com.dynamicpdf.api.elements
Class StackedGs1DataBarBarcodeElement
java.lang.Object
com.dynamicpdf.api.elements.Element
com.dynamicpdf.api.elements.BarcodeElement
com.dynamicpdf.api.elements.TextBarcodeElement
com.dynamicpdf.api.elements.StackedGs1DataBarBarcodeElement
Represents a StackedGS1DataBar barcode element.
This class can be used to place a StackedGS1DataBar barcode on a page.
-
Constructor Summary
ConstructorDescriptionStackedGs1DataBarBarcodeElement(String value, ElementPlacement placement, StackedGs1DataBarType stackedGs1DataBarType, float rowHeight)
Initializes a new instance of theStackedGs1DataBarBarcodeElement
classStackedGs1DataBarBarcodeElement(String value, ElementPlacement placement, StackedGs1DataBarType stackedGs1DataBarType, float rowHeight, float xOffset, float yOffset)
Initializes a new instance of theStackedGs1DataBarBarcodeElement
class -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the segment count of the Expanded Stacked barcode.float
Gets the row height of the barcode.void
setExpandedStackedSegmentCount(int value)
Sets the segment count of the Expanded Stacked barcode.void
setRowHeight(float value)
Sets the row height of the barcode.Methods inherited from class com.dynamicpdf.api.elements.TextBarcodeElement
getFont, getFontSize, getResource, getShowText, getTextColor, getTextFont, setFont, setFontSize, setShowText, setTextColor
Methods inherited from class com.dynamicpdf.api.elements.BarcodeElement
getColor, getValue, getXDimension, setColor, setValue, setXDimension
Methods inherited from class com.dynamicpdf.api.elements.Element
getEvenPages, getOddPages, getPlacement, getXOffset, getYOffset, setEvenPages, setOddPages, setPlacement, setXOffset, setYOffset
-
Constructor Details
-
StackedGs1DataBarBarcodeElement
public StackedGs1DataBarBarcodeElement(String value, ElementPlacement placement, StackedGs1DataBarType stackedGs1DataBarType, float rowHeight, float xOffset, float yOffset)Initializes a new instance of theStackedGs1DataBarBarcodeElement
class- Parameters:
value
- The value of the barcode.placement
- The placement of the barcode on the page.stackedGs1DataBarType
- The StackedGS1DataBarType of the barcode.rowHeight
- The row height of the barcode.xOffset
- The X coordinate of the barcode.yOffset
- The Y coordinate of the barcode.
-
StackedGs1DataBarBarcodeElement
public StackedGs1DataBarBarcodeElement(String value, ElementPlacement placement, StackedGs1DataBarType stackedGs1DataBarType, float rowHeight)Initializes a new instance of theStackedGs1DataBarBarcodeElement
class- Parameters:
value
- The value of the barcode.placement
- The placement of the barcode on the page.stackedGs1DataBarType
- The StackedGS1DataBarType of the barcode.rowHeight
- The row height of the barcode.
-
-
Method Details
-
getExpandedStackedSegmentCount
public int getExpandedStackedSegmentCount()Gets the segment count of the Expanded Stacked barcode.This is used only for the ExpandedStacked Gs1DataBar type.
- Returns:
- The segment count of the Expanded Stacked barcode.
-
setExpandedStackedSegmentCount
public void setExpandedStackedSegmentCount(int value)Sets the segment count of the Expanded Stacked barcode.This is used only for the ExpandedStacked Gs1DataBar type.
- Parameters:
value
- The segment count of the Expanded Stacked barcode.
-
getRowHeight
public float getRowHeight()Gets the row height of the barcode.- Returns:
- The row height of the barcode.
-
setRowHeight
public void setRowHeight(float value)Sets the row height of the barcode.- Parameters:
value
- The row height of the barcode.
-