UniPRT SDK  v1.0.0.0
com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths Class Referenceabstract
Inheritance diagram for com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths:
com.UniPRT.Sdk.LabelMaker.Interface.IBarWidths com.UniPRT.Sdk.LabelMaker.PGL.BarWidths com.UniPRT.Sdk.LabelMaker.TSPL.BarWidths

Public Member Functions

IRuler GetRuler ()
 Ruler to use for bar widths. More...
 
void SetRuler (IRuler ruler)
 
float GetNarrowBar ()
 Width of smallest bar. This is typically referred to as the X-dimension of the barcode. More...
 
void SetNarrowBar (float narrowBar)
 
float GetWideBar ()
 Width of widest bar. This is typically a multiple of the NarrowBar in order for barcode scanners to differentiate bar widths. More...
 
void SetWideBar (float wideBar)
 

Protected Member Functions

 ABarWidths (float narrowBar, float wideBar)
 

Private Attributes

IRuler ruler
 
float narrowBar
 
float wideBar
 

Constructor & Destructor Documentation

◆ ABarWidths()

com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.ABarWidths ( float  narrowBar,
float  wideBar 
)
protected

Member Function Documentation

◆ GetNarrowBar()

float com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.GetNarrowBar ( )

Width of smallest bar. This is typically referred to as the X-dimension of the barcode.

Implements com.UniPRT.Sdk.LabelMaker.Interface.IBarWidths.

References com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.narrowBar.

◆ GetRuler()

IRuler com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.GetRuler ( )

Ruler to use for bar widths.

In some cases, it may be desirable to specify the bar widths in native dots to avoid rounding errors since the smallest print unit on a thermal printer is a dot and any bar widths that result in fractional dot printing will result in rounding error. Note that rounding errors can more drastically affect barcode readability on smaller X-dimension/(NarrowBar) barcodes due to rounding errors resulting in larger percentage inaccuracy as X-dimension gets smaller.

Implements com.UniPRT.Sdk.LabelMaker.Interface.IBarWidths.

References com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.ruler.

Referenced by com.UniPRT.Sdk.LabelMaker.PGL.BarWidths.BcdMagnification1D().

◆ GetWideBar()

float com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.GetWideBar ( )

Width of widest bar. This is typically a multiple of the NarrowBar in order for barcode scanners to differentiate bar widths.

Implements com.UniPRT.Sdk.LabelMaker.Interface.IBarWidths.

References com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.wideBar.

Referenced by com.UniPRT.Sdk.LabelMaker.PGL.BarWidths.BcdMagnification1D().

◆ SetNarrowBar()

void com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.SetNarrowBar ( float  narrowBar)

◆ SetRuler()

◆ SetWideBar()

void com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.SetWideBar ( float  wideBar)

Member Data Documentation

◆ narrowBar

◆ ruler

IRuler com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.ruler
private

◆ wideBar


The documentation for this class was generated from the following file: