Base class for PDF417 barcode. More...
Public Member Functions | |
ICellRect | GetCellSize () |
The cell size can be thought of as the width and height of the narrowest bar element within a PDF417 row. More... | |
void | SetCellSize (ICellRect cellSize) |
Pdf417ErrCorrectionEnum | GetErrorCorrection () |
void | SetErrorCorrection (Pdf417ErrCorrectionEnum errorCorrection) |
int | GetRows () |
The number of rows can be used to limit the height of the barcode. More... | |
void | SetRows (int rows) |
int | GetColumns () |
The number of columns can be used to limit the width of the barcode. More... | |
void | SetColumns (int columns) |
abstract String | toString () |
![]() | |
IRuler | GetRuler () |
The print resolution can be set in either inch or MM scale. Setting/Updating either scale results in updates to both. More... | |
void | SetRuler (IRuler ruler) |
IPoint | GetStart () |
Position where barcode starts. More... | |
void | SetStart (IPoint start) |
String | GetData () |
The barcode content. More... | |
void | SetData (String data) |
RotateEnum | GetRotation () |
void | SetRotation (RotateEnum rotation) |
abstract String | ToString () |
Returns the string that can be sent to printer. More... | |
Protected Member Functions | |
APdf417 () | |
APdf417 (IPoint start, String data) | |
int | LimitRange (int value, int min, int max) |
Utility method to limit values to a specified range. More... | |
Private Attributes | |
ICellRect | cellSize |
Pdf417ErrCorrectionEnum | errorCorrection = Pdf417ErrCorrectionEnum.LEVEL_2 |
int | rows = 0 |
int | columns = 0 |
Base class for PDF417 barcode.
|
protected |
|
protected |
ICellRect com.UniPRT.Sdk.LabelMaker.Abstract.APdf417.GetCellSize | ( | ) |
The cell size can be thought of as the width and height of the narrowest bar element within a PDF417 row.
Changing the dimensions of the smallest element affects the overall width and height of the barcode.
Implements com.UniPRT.Sdk.LabelMaker.Interface.IRectangleCell.
References com.UniPRT.Sdk.LabelMaker.Abstract.APdf417.cellSize.
Referenced by com.UniPRT.Sdk.LabelMaker.PGL.Pdf417Barcode.toString(), and com.UniPRT.Sdk.LabelMaker.TSPL.Pdf417Barcode.toString().
int com.UniPRT.Sdk.LabelMaker.Abstract.APdf417.GetColumns | ( | ) |
The number of columns can be used to limit the width of the barcode.
A zero value indicates that columns are determined automatically. Barcode must be allowed to grow in width or height in order to fit data. For this reason, limiting the growth of the barcode can only be done in one direction either by limiting width or height via Rows or Columns. Note that additional non-data columns result from Start/Stop pattern and the Left/Right row indicators, creating additional 4 columns.
References com.UniPRT.Sdk.LabelMaker.Abstract.APdf417.columns.
Referenced by com.UniPRT.Sdk.LabelMaker.PGL.Pdf417Barcode.toString(), and com.UniPRT.Sdk.LabelMaker.TSPL.Pdf417Barcode.toString().
Pdf417ErrCorrectionEnum com.UniPRT.Sdk.LabelMaker.Abstract.APdf417.GetErrorCorrection | ( | ) |
int com.UniPRT.Sdk.LabelMaker.Abstract.APdf417.GetRows | ( | ) |
The number of rows can be used to limit the height of the barcode.
A zero value indicates that rows are determined automatically. Barcode must be allowed to grow in width or height in order to fit data. For this reason, limiting the growth of the barcode can only be done in one direction either by limiting width or height via Rows or Columns.
References com.UniPRT.Sdk.LabelMaker.Abstract.APdf417.rows.
Referenced by com.UniPRT.Sdk.LabelMaker.PGL.Pdf417Barcode.toString(), and com.UniPRT.Sdk.LabelMaker.TSPL.Pdf417Barcode.toString().
|
protected |
Utility method to limit values to a specified range.
value | The value to limit. |
min | The minimum allowable value. |
max | The maximum allowable value. |
Referenced by com.UniPRT.Sdk.LabelMaker.PGL.Pdf417Barcode.toString().
void com.UniPRT.Sdk.LabelMaker.Abstract.APdf417.SetCellSize | ( | ICellRect | cellSize | ) |
void com.UniPRT.Sdk.LabelMaker.Abstract.APdf417.SetColumns | ( | int | columns | ) |
References com.UniPRT.Sdk.LabelMaker.Abstract.APdf417.columns.
Referenced by com.UniPRT.Sdk.LabelMaker.TSPL.Pdf417Barcode.toString().
void com.UniPRT.Sdk.LabelMaker.Abstract.APdf417.SetErrorCorrection | ( | Pdf417ErrCorrectionEnum | errorCorrection | ) |
void com.UniPRT.Sdk.LabelMaker.Abstract.APdf417.SetRows | ( | int | rows | ) |
References com.UniPRT.Sdk.LabelMaker.Abstract.APdf417.rows.
|
abstract |
Reimplemented from com.UniPRT.Sdk.LabelMaker.Abstract.ABarcode2D.
Reimplemented in com.UniPRT.Sdk.LabelMaker.TSPL.Pdf417Barcode, and com.UniPRT.Sdk.LabelMaker.PGL.Pdf417Barcode.
|
private |
|
private |
|
private |
|
private |