Class POSPrinterService.EscBarcode
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.posprinter.POSPrinterService.PrintDataPart
de.gmxhome.conrad.jpos.jpos_base.posprinter.POSPrinterService.EscBarcode
- Enclosing class:
- POSPrinterService
Class describing barcode escape sequences ESC|[*]#R.
-
Method Summary
Modifier and TypeMethodDescriptionintSee parameter alignment, UPOS specification, method PrintBarCode.getData()See parameter data, UPOS specification, method PrintBarCode.getEscBarcode(POSPrinterService.PrintDataPart obj, int type, int subtype, int ignored, String escdata, boolean negated, boolean valueispresent, int mapmode)Checks whether the specified esc sequence parameters form a bar code sequence.intSee parameter height, UPOS specification, method PrintBarCode.intMapping mode as stored in MapMode propertyintSee parameter symbology, UPOS specification, method PrintBarCode.intSee parameter textPosition, UPOS specification, method PrintBarCode.intgetWidth()See parameter width, UPOS specification, method PrintBarCode.voidvalidate(POSPrinterService srv, int station)Used to perform full validation of the print data.voidvalidateData(POSPrinterService srv, int station)Used to perform additional validation of the print data, if output to the given station occurs.
-
Method Details
-
getSymbology
public int getSymbology()See parameter symbology, UPOS specification, method PrintBarCode.- Returns:
- Symbology.
-
getHeight
public int getHeight()See parameter height, UPOS specification, method PrintBarCode.- Returns:
- Height.
-
getWidth
public int getWidth()See parameter width, UPOS specification, method PrintBarCode.- Returns:
- Width
-
getAlignment
public int getAlignment()See parameter alignment, UPOS specification, method PrintBarCode.- Returns:
- Alignment.
-
getTextPosition
public int getTextPosition()See parameter textPosition, UPOS specification, method PrintBarCode.- Returns:
- Position of HRI-Text.
-
getMapMode
public int getMapMode()Mapping mode as stored in MapMode property- Returns:
- Mapping mode.
-
getData
See parameter data, UPOS specification, method PrintBarCode.- Returns:
- Bar code data.
-
getEscBarcode
public static POSPrinterService.PrintDataPart getEscBarcode(POSPrinterService.PrintDataPart obj, int type, int subtype, int ignored, String escdata, boolean negated, boolean valueispresent, int mapmode)Checks whether the specified esc sequence parameters form a bar code sequence. If so, it returns an EscBarcode object. If not, the object given as first parameter will be returned.- Parameters:
obj- An object containing corresponding sequence parameters or null.type- The sequence type (see EscUnknown, property Esc).subtype- The subtype (see EscUnknown, property Subtype).ignored- The value (see EscUnknown, property Value). Will be ignored.escdata- If value is a data length, the corresponding data. Otherwise null.negated- The negation flag (see EscUnknown, property Negated).valueispresent- The present flag (see EscUnknown, property ValuePresent).mapmode- Contents of MapMode when the object has been created.- Returns:
- An EscBarcode object, if the sequence is a well-formed bar code sequence, otherwise obj.
-
validate
Description copied from class:POSPrinterService.PrintDataPartUsed to perform full validation of the print data. To do this, relevant capabilities will be checked and the corresponding method of the POSPrinterInterface used by the given POSPrinterService will be called.- Specified by:
validatein classPOSPrinterService.PrintDataPart- Parameters:
srv- POSPrinterService to be used for additional validation.station- Printer station for which the validation shall be checked.- Throws:
jpos.JposException- If not precisely supported with ErrorCode E_ILLEGAL, if not supported and no workaround is possible, with ErrorCode E_FAILURE.
-
validateData
Description copied from class:POSPrinterService.PrintDataPartUsed to perform additional validation of the print data, if output to the given station occurs. To do this, simply the corresponding method of the POSPrinterInterface used by the given POSPrinterService will be called.- Specified by:
validateDatain classPOSPrinterService.PrintDataPart- Parameters:
srv- POSPrinterService to be used for validation.station- Printer station used for validation.- Throws:
jpos.JposException- If not precisely supported with ErrorCode E_ILLEGAL, if not supported and no workaround is possible, with ErrorCode E_FAILURE.
-