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 |
|
protected |
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.
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().
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().
void com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.SetNarrowBar | ( | float | narrowBar | ) |
void com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.SetRuler | ( | IRuler | ruler | ) |
void com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.SetWideBar | ( | float | wideBar | ) |
Implements com.UniPRT.Sdk.LabelMaker.Interface.IBarWidths.
References com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.wideBar.
|
private |
Referenced by com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.ABarWidths(), com.UniPRT.Sdk.LabelMaker.TSPL.BarWidths.BarWidths(), com.UniPRT.Sdk.LabelMaker.PGL.BarWidths.BarWidths(), com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.GetNarrowBar(), and com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.SetNarrowBar().
|
private |
|
private |
Referenced by com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.ABarWidths(), com.UniPRT.Sdk.LabelMaker.TSPL.BarWidths.BarWidths(), com.UniPRT.Sdk.LabelMaker.PGL.BarWidths.BarWidths(), com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.GetWideBar(), and com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.SetWideBar().